Use module_defaults on web1

This commit is contained in:
Salt 2021-06-18 12:39:21 -05:00
parent 7817ed5e44
commit 7fee7bdcf1

View File

@ -9,6 +9,11 @@
- vars/desultd-apache.yml
- vars/desultd-certbot.yml
- vars/desultd-nextcloud.yml
module_defaults:
docker_container:
state: started
restart_policy: unless-stopped
pull: yes
tasks:
- name: configure nextcloud cronjob
cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nc.desu.ltd/cron.php"
@ -16,10 +21,7 @@
- name: docker deploy 9iron
docker_container:
name: 9iron
state: started
image: rehashedsalt/9iron:latest
restart_policy: unless-stopped
pull: yes
ports:
- 8001:80
volumes:
@ -28,10 +30,7 @@
- name: docker deploy desultd
docker_container:
name: desultd
state: started
image: rehashedsalt/desultd:latest
restart_policy: unless-stopped
pull: yes
ports:
- 8002:80
volumes:
@ -40,10 +39,7 @@
- name: docker deploy gitea
docker_container:
name: gitea
state: started
image: gitea/gitea:1
restart_policy: unless-stopped
pull: yes
env:
USER_UID: "1002"
USER_GID: "1002"
@ -64,10 +60,7 @@
- name: docker deploy gulagbot
docker_container:
name: gulagbot
state: started
image: rehashedsalt/gulagbot:latest
restart_policy: unless-stopped
pull: yes
env:
DISCORD_TOKEN: "{{ secret_gulagbot_discord_token }}"
PGHOST: 192.168.164.156