Compare commits
13 Commits
f656324cec
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e35d268aea | |||
| 3ac7e79e92 | |||
| f5befdb1fb | |||
| 34f3a0f960 | |||
| d6787a31b0 | |||
| 10dee7520d | |||
| 2e3a692ba9 | |||
| 6e847ad266 | |||
| 2babf85b4e | |||
| 1959f10866 | |||
| 5ab682ada7 | |||
| 8cfd92bb1d | |||
| d2e65de1bc |
8
Makefile
8
Makefile
@@ -1,7 +1,13 @@
|
|||||||
apply:
|
apply:
|
||||||
ansible-playbook debian.yml -u root -i "127.0.0.1,"
|
ansible-playbook debian.yml -u root -i "127.0.0.1,"
|
||||||
apply-all:
|
apply-all:
|
||||||
ansible-playbook debian.yml -u root -i "andraia,"
|
ansible-playbook debian.yml -u root -i 'andraia,'
|
||||||
|
apply-local:
|
||||||
|
su -c "ansible-playbook debian.yml -u root -i '127.0.0.1,' --connection=local"
|
||||||
|
plex-local:
|
||||||
|
sudo ansible-playbook plex_server.yml -u root -i '127.0.0.1,' --connection=local
|
||||||
|
init-local:
|
||||||
|
su -c "mkdir -p /root/.ssh/ && cat ~gary/.ssh/id_rsa.pub >> /root/.ssh/authorized_key"
|
||||||
init:
|
init:
|
||||||
ssh root@127.0.0.1 mkdir -p .ssh
|
ssh root@127.0.0.1 mkdir -p .ssh
|
||||||
cat ~/.ssh/id_rsa.pub | ssh root@127.0.0.1 "cat >> .ssh/authorized_key"
|
cat ~/.ssh/id_rsa.pub | ssh root@127.0.0.1 "cat >> .ssh/authorized_key"
|
||||||
|
|||||||
112
debian.yml
112
debian.yml
@@ -25,6 +25,29 @@
|
|||||||
repo: "deb-src http://ftp.us.debian.org/debian stretch contrib non-free"
|
repo: "deb-src http://ftp.us.debian.org/debian stretch contrib non-free"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Node.js Repository Key
|
||||||
|
apt_key:
|
||||||
|
url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
|
||||||
|
state: present
|
||||||
|
- name: Node.js Repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb https://deb.nodesource.com/node_6.x jessie main"
|
||||||
|
state: present
|
||||||
|
- name: Node.js Src Repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb-src https://deb.nodesource.com/node_6.x jessie main"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
- name: Syncthing Repository Key
|
||||||
|
apt_key:
|
||||||
|
url: https://syncthing.net/release-key.txt
|
||||||
|
state: present
|
||||||
|
- name: Syncthing Repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb https://apt.syncthing.net/ syncthing stable"
|
||||||
|
state: present
|
||||||
|
|
||||||
- name: Tarsnap Repository Key
|
- name: Tarsnap Repository Key
|
||||||
apt_key:
|
apt_key:
|
||||||
url: https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc
|
url: https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc
|
||||||
@@ -53,6 +76,21 @@
|
|||||||
repo: "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"
|
repo: "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: VirtualBox Repository Key 1
|
||||||
|
apt_key:
|
||||||
|
url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
|
||||||
|
state: present
|
||||||
|
- name: VirtualBox Repository Key 2
|
||||||
|
apt_key:
|
||||||
|
url: https://www.virtualbox.org/download/oracle_vbox.asc
|
||||||
|
state: present
|
||||||
|
- name: VirtualBox Repository
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb http://download.virtualbox.org/virtualbox/debian stretch contrib"
|
||||||
|
state: present
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# update system
|
# update system
|
||||||
- name: Update | Update System
|
- name: Update | Update System
|
||||||
apt:
|
apt:
|
||||||
@@ -61,7 +99,7 @@
|
|||||||
|
|
||||||
# install packages
|
# install packages
|
||||||
|
|
||||||
- name: Install Ansible
|
- name: Install ansible
|
||||||
apt:
|
apt:
|
||||||
name: ansible
|
name: ansible
|
||||||
state: latest
|
state: latest
|
||||||
@@ -71,22 +109,37 @@
|
|||||||
name: bzr
|
name: bzr
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: Install cifs-utils
|
||||||
|
apt:
|
||||||
|
name: cifs-utils
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: Install clang
|
- name: Install clang
|
||||||
apt:
|
apt:
|
||||||
name: clang
|
name: clang
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install CTags
|
- name: Install cmake
|
||||||
|
apt:
|
||||||
|
name: cmake
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Install ctags
|
||||||
apt:
|
apt:
|
||||||
name: ctags
|
name: ctags
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install Docker
|
- name: Install curl
|
||||||
|
apt:
|
||||||
|
name: curl
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Install docker
|
||||||
apt:
|
apt:
|
||||||
name: docker-ce
|
name: docker-ce
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install Docker Compose
|
- name: Install docker-compose
|
||||||
apt:
|
apt:
|
||||||
name: docker-compose
|
name: docker-compose
|
||||||
state: latest
|
state: latest
|
||||||
@@ -96,11 +149,26 @@
|
|||||||
name: firmware-iwlwifi
|
name: firmware-iwlwifi
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install Git
|
- name: Install fonts-symbola
|
||||||
|
apt:
|
||||||
|
name: fonts-symbola
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Install ftp
|
||||||
|
apt:
|
||||||
|
name: ftp
|
||||||
|
state: latest
|
||||||
|
|
||||||
|
- name: Install git
|
||||||
apt:
|
apt:
|
||||||
name: git
|
name: git
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: Install gnome-boxes
|
||||||
|
apt:
|
||||||
|
name: gnome-boxes
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: Install gnome-tweak-tool
|
- name: Install gnome-tweak-tool
|
||||||
apt:
|
apt:
|
||||||
name: gnome-tweak-tool
|
name: gnome-tweak-tool
|
||||||
@@ -111,7 +179,7 @@
|
|||||||
name: golang
|
name: golang
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install Google Chrome
|
- name: Install google-chrome-stable
|
||||||
apt:
|
apt:
|
||||||
name: google-chrome-stable
|
name: google-chrome-stable
|
||||||
state: latest
|
state: latest
|
||||||
@@ -126,10 +194,15 @@
|
|||||||
name: llvm
|
name: llvm
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
# - name: Install npm
|
- name: Install mgba-qt
|
||||||
# apt:
|
apt:
|
||||||
# name: npm
|
name: mgba-qt
|
||||||
# state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: Install nodejs
|
||||||
|
apt:
|
||||||
|
name: nodejs
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: Install pandoc
|
- name: Install pandoc
|
||||||
apt:
|
apt:
|
||||||
@@ -161,10 +234,10 @@
|
|||||||
name: redshift-gtk
|
name: redshift-gtk
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install remmina
|
#- name: Install remmina
|
||||||
apt:
|
# apt:
|
||||||
name: remmina
|
# name: remmina
|
||||||
state: latest
|
# state: latest
|
||||||
|
|
||||||
- name: Install rsync
|
- name: Install rsync
|
||||||
apt:
|
apt:
|
||||||
@@ -226,6 +299,11 @@
|
|||||||
name: tree
|
name: tree
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
|
- name: Install virtualbox-5.1
|
||||||
|
apt:
|
||||||
|
name: virtualbox-5.1
|
||||||
|
state: latest
|
||||||
|
|
||||||
- name: Install vim-gtk3
|
- name: Install vim-gtk3
|
||||||
apt:
|
apt:
|
||||||
name: vim-gtk3
|
name: vim-gtk3
|
||||||
@@ -236,17 +314,17 @@
|
|||||||
name: vlc
|
name: vlc
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install ZSH
|
- name: Install zsh
|
||||||
apt:
|
apt:
|
||||||
name: zsh
|
name: zsh
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install ZFS
|
- name: Install zfs-dkms
|
||||||
apt:
|
apt:
|
||||||
name: zfs-dkms
|
name: zfs-dkms
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install ZFS Utils
|
- name: Install zfsutils-linux
|
||||||
apt:
|
apt:
|
||||||
name: zfsutils-linux
|
name: zfsutils-linux
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
- name: Enable Syncthing Daemon
|
- name: Enable Syncthing Daemon
|
||||||
service:
|
service:
|
||||||
name: syncthing@gary
|
name: "syncthing@gary"
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
|
|||||||
20
plex_server.yml
Normal file
20
plex_server.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: Pull Plex Image
|
||||||
|
docker_image:
|
||||||
|
name: plexinc/pms-docker:latest
|
||||||
|
|
||||||
|
- name: Create Plex Container
|
||||||
|
docker_container:
|
||||||
|
name: Plex
|
||||||
|
image: plexinc/pms-docker:latest
|
||||||
|
state: started
|
||||||
|
restart_policy: always
|
||||||
|
network_mode: host
|
||||||
|
env:
|
||||||
|
PLEX_CLAIM: "America/North_Dakota/Center"
|
||||||
|
volumes:
|
||||||
|
- /pool0/plex/database:/config
|
||||||
|
- /pool0/plex/transcode:/transcode
|
||||||
|
- /pool0/plex/data:/data
|
||||||
|
- /pool0/plex/media_libraries:/media_libraries
|
||||||
Reference in New Issue
Block a user