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