|
|
|
@ -4,12 +4,19 @@ |
|
|
|
|
remote_user: admin |
|
|
|
|
|
|
|
|
|
vars_files: |
|
|
|
|
#- vars.yml |
|
|
|
|
- secrets.yaml |
|
|
|
|
|
|
|
|
|
tasks: |
|
|
|
|
######################################## CONFIG BASE ######################################## |
|
|
|
|
|
|
|
|
|
- name: Ensure group Docker exists |
|
|
|
|
- name: Apt update |
|
|
|
|
apt: |
|
|
|
|
name: aptitude |
|
|
|
|
state: latest |
|
|
|
|
update_cache: true |
|
|
|
|
|
|
|
|
|
- name: Create group Docker |
|
|
|
|
group: |
|
|
|
|
name: docker |
|
|
|
|
state: present |
|
|
|
@ -38,6 +45,7 @@ |
|
|
|
|
- /workspace/jellyfin/ |
|
|
|
|
- /workspace/syncthing/ |
|
|
|
|
|
|
|
|
|
######################################## INSTALL ######################################## |
|
|
|
|
|
|
|
|
|
################# GIT ################# |
|
|
|
|
|
|
|
|
@ -58,12 +66,6 @@ |
|
|
|
|
|
|
|
|
|
################# DOCKER ################# |
|
|
|
|
|
|
|
|
|
- name: Apt update |
|
|
|
|
apt: |
|
|
|
|
name: aptitude |
|
|
|
|
state: latest |
|
|
|
|
update_cache: true |
|
|
|
|
|
|
|
|
|
- name: Install required system packages for Docker |
|
|
|
|
apt: |
|
|
|
|
pkg: |
|
|
|
@ -106,7 +108,7 @@ |
|
|
|
|
dest: /usr/local/bin/docker-compose |
|
|
|
|
mode: 'u+x,g+x' |
|
|
|
|
|
|
|
|
|
- name: Change Docker-compose folder file permission |
|
|
|
|
- name: Change Docker-compose file permission |
|
|
|
|
file: |
|
|
|
|
path: /usr/local/bin/docker-compose |
|
|
|
|
owner: admin |
|
|
|
@ -152,13 +154,18 @@ |
|
|
|
|
state: restarted |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######################################## INSTALL STACK ######################################## |
|
|
|
|
######################################## DEPLOY STACK ######################################## |
|
|
|
|
|
|
|
|
|
# - name: Copy Nginx configs |
|
|
|
|
# SCP FROM BACKUPMAN |
|
|
|
|
|
|
|
|
|
- name: Restart nginx service |
|
|
|
|
service: |
|
|
|
|
name: nginx |
|
|
|
|
state: restarted |
|
|
|
|
|
|
|
|
|
# - name: Copy volumes of /data/ |
|
|
|
|
|
|
|
|
|
# SCP FROM BACKUPMAN |
|
|
|
|
|
|
|
|
|
- name: Git pull stack |
|
|
|
|
become: yes |
|
|
|
|