summaryrefslogtreecommitdiffstats
path: root/ansible/uninstall.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/uninstall.yml')
-rw-r--r--ansible/uninstall.yml26
1 files changed, 16 insertions, 10 deletions
diff --git a/ansible/uninstall.yml b/ansible/uninstall.yml
index 252c5bd1..34c24d2e 100644
--- a/ansible/uninstall.yml
+++ b/ansible/uninstall.yml
@@ -22,27 +22,33 @@
- name: stop docker-compose
docker_compose:
- project_src: /lemmy/
+ project_src: '{{lemmy_base_dir}}'
state: absent
- name: delete data
- file: path={{item.path}} state=absent
+ file:
+ path: '{{item.path}}'
+ state: absent
with_items:
- - { path: '/lemmy/' }
- - { path: '/etc/nginx/sites-enabled/lemmy.conf' }
+ - path: '{{lemmy_base_dir}}'
+ - path: '/etc/nginx/sites-enabled/lemmy.conf'
- name: Remove a volume
- docker_volume: name={{item.name}} state=absent
+ docker_volume:
+ name: '{{item.name}}'
+ state: absent
with_items:
- - { name: 'lemmy_lemmy_db' }
- - { name: 'lemmy_lemmy_pictshare' }
+ - name: 'lemmy_lemmy_db'
+ - name: 'lemmy_lemmy_pictshare'
- name: delete entire ecloud folder
- file: path='/mnt/repo-base/' state=absent
+ file:
+ path: '/mnt/repo-base/'
+ state: absent
when: delete_certs|bool
- name: remove certbot cronjob
cron:
- name=certbot-renew-lemmy
- state=absent
+ name: certbot-renew-lemmy
+ state: absent