Compare commits
16 Commits
d469464d95
...
master
Author | SHA1 | Date | |
---|---|---|---|
e35d268aea | |||
3ac7e79e92 | |||
f5befdb1fb | |||
34f3a0f960 | |||
d6787a31b0 | |||
10dee7520d | |||
2e3a692ba9 | |||
6e847ad266 | |||
2babf85b4e | |||
1959f10866 | |||
5ab682ada7 | |||
8cfd92bb1d | |||
d2e65de1bc | |||
f656324cec | |||
47a3d41f0b | |||
b463bb9ea4 |
8
Makefile
8
Makefile
@@ -1,5 +1,13 @@
|
||||
apply:
|
||||
ansible-playbook debian.yml -u root -i "127.0.0.1,"
|
||||
apply-all:
|
||||
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:
|
||||
ssh root@127.0.0.1 mkdir -p .ssh
|
||||
cat ~/.ssh/id_rsa.pub | ssh root@127.0.0.1 "cat >> .ssh/authorized_key"
|
||||
|
134
debian.yml
134
debian.yml
@@ -5,11 +5,49 @@
|
||||
name: apt-transport-https
|
||||
state: latest
|
||||
|
||||
- name: "Contrib, Non-free"
|
||||
- name: "deb security.debian.org/debian-security"
|
||||
apt_repository:
|
||||
repo: "deb http://security.debian.org/debian-security stretch/updates contrib non-free"
|
||||
state: present
|
||||
|
||||
- name: "deb-src security.debian.org/debian-security"
|
||||
apt_repository:
|
||||
repo: "deb-src http://security.debian.org/debian-security stretch/updates contrib non-free"
|
||||
state: present
|
||||
|
||||
- name: "deb Contrib, Non-free"
|
||||
apt_repository:
|
||||
repo: "deb http://ftp.us.debian.org/debian stretch contrib non-free"
|
||||
state: present
|
||||
|
||||
- name: "deb-src Contrib, Non-free"
|
||||
apt_repository:
|
||||
repo: "deb-src http://ftp.us.debian.org/debian stretch contrib non-free"
|
||||
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
|
||||
apt_key:
|
||||
url: https://pkg.tarsnap.com/tarsnap-deb-packaging-key.asc
|
||||
@@ -38,6 +76,21 @@
|
||||
repo: "deb [arch=amd64] https://download.docker.com/linux/debian stretch stable"
|
||||
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
|
||||
- name: Update | Update System
|
||||
apt:
|
||||
@@ -46,7 +99,7 @@
|
||||
|
||||
# install packages
|
||||
|
||||
- name: Install Ansible
|
||||
- name: Install ansible
|
||||
apt:
|
||||
name: ansible
|
||||
state: latest
|
||||
@@ -56,22 +109,37 @@
|
||||
name: bzr
|
||||
state: latest
|
||||
|
||||
- name: Install cifs-utils
|
||||
apt:
|
||||
name: cifs-utils
|
||||
state: latest
|
||||
|
||||
- name: Install clang
|
||||
apt:
|
||||
name: clang
|
||||
state: latest
|
||||
|
||||
- name: Install CTags
|
||||
- name: Install cmake
|
||||
apt:
|
||||
name: cmake
|
||||
state: latest
|
||||
|
||||
- name: Install ctags
|
||||
apt:
|
||||
name: ctags
|
||||
state: latest
|
||||
|
||||
- name: Install Docker
|
||||
- name: Install curl
|
||||
apt:
|
||||
name: curl
|
||||
state: latest
|
||||
|
||||
- name: Install docker
|
||||
apt:
|
||||
name: docker-ce
|
||||
state: latest
|
||||
|
||||
- name: Install Docker Compose
|
||||
- name: Install docker-compose
|
||||
apt:
|
||||
name: docker-compose
|
||||
state: latest
|
||||
@@ -81,11 +149,26 @@
|
||||
name: firmware-iwlwifi
|
||||
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:
|
||||
name: git
|
||||
state: latest
|
||||
|
||||
- name: Install gnome-boxes
|
||||
apt:
|
||||
name: gnome-boxes
|
||||
state: latest
|
||||
|
||||
- name: Install gnome-tweak-tool
|
||||
apt:
|
||||
name: gnome-tweak-tool
|
||||
@@ -96,7 +179,7 @@
|
||||
name: golang
|
||||
state: latest
|
||||
|
||||
- name: Install Google Chrome
|
||||
- name: Install google-chrome-stable
|
||||
apt:
|
||||
name: google-chrome-stable
|
||||
state: latest
|
||||
@@ -111,10 +194,15 @@
|
||||
name: llvm
|
||||
state: latest
|
||||
|
||||
# - name: Install npm
|
||||
# apt:
|
||||
# name: npm
|
||||
# state: latest
|
||||
- name: Install mgba-qt
|
||||
apt:
|
||||
name: mgba-qt
|
||||
state: latest
|
||||
|
||||
- name: Install nodejs
|
||||
apt:
|
||||
name: nodejs
|
||||
state: latest
|
||||
|
||||
- name: Install pandoc
|
||||
apt:
|
||||
@@ -146,10 +234,10 @@
|
||||
name: redshift-gtk
|
||||
state: latest
|
||||
|
||||
- name: Install remmina
|
||||
apt:
|
||||
name: remmina
|
||||
state: latest
|
||||
#- name: Install remmina
|
||||
# apt:
|
||||
# name: remmina
|
||||
# state: latest
|
||||
|
||||
- name: Install rsync
|
||||
apt:
|
||||
@@ -176,6 +264,11 @@
|
||||
# name: steam
|
||||
# state: latest
|
||||
|
||||
- name: Install sshfs
|
||||
apt:
|
||||
name: sshfs
|
||||
state: latest
|
||||
|
||||
- name: Install sudo
|
||||
apt:
|
||||
name: sudo
|
||||
@@ -206,6 +299,11 @@
|
||||
name: tree
|
||||
state: latest
|
||||
|
||||
- name: Install virtualbox-5.1
|
||||
apt:
|
||||
name: virtualbox-5.1
|
||||
state: latest
|
||||
|
||||
- name: Install vim-gtk3
|
||||
apt:
|
||||
name: vim-gtk3
|
||||
@@ -216,17 +314,17 @@
|
||||
name: vlc
|
||||
state: latest
|
||||
|
||||
- name: Install ZSH
|
||||
- name: Install zsh
|
||||
apt:
|
||||
name: zsh
|
||||
state: latest
|
||||
|
||||
- name: Install ZFS
|
||||
- name: Install zfs-dkms
|
||||
apt:
|
||||
name: zfs-dkms
|
||||
state: latest
|
||||
|
||||
- name: Install ZFS Utils
|
||||
- name: Install zfsutils-linux
|
||||
apt:
|
||||
name: zfsutils-linux
|
||||
state: latest
|
||||
|
@@ -86,7 +86,7 @@
|
||||
|
||||
- name: Enable Syncthing Daemon
|
||||
service:
|
||||
name: syncthing@gary
|
||||
name: "syncthing@gary"
|
||||
enabled: yes
|
||||
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