Get uninstall working

This commit is contained in:
Dessalines 2021-10-09 11:34:44 -04:00
parent d53a034661
commit 14811ffd3e

View file

@ -22,7 +22,7 @@
- name: stop docker-compose - name: stop docker-compose
docker_compose: docker_compose:
project_src: '{{lemmy_base_dir}}' project_src: '{{lemmy_base_dir}}/{{domain}}'
state: absent state: absent
- name: delete data - name: delete data
@ -30,16 +30,8 @@
path: '{{item.path}}' path: '{{item.path}}'
state: absent state: absent
with_items: with_items:
- path: '{{lemmy_base_dir}}' - path: '{{lemmy_base_dir}}/{{domain}}'
- path: '/etc/nginx/sites-enabled/lemmy.conf' - path: '/etc/nginx/sites-enabled/{{domain}}.conf'
- name: Remove a volume
docker_volume:
name: '{{item.name}}'
state: absent
with_items:
- name: 'lemmy_lemmy_db'
- name: 'lemmy_lemmy_pictshare'
- name: delete entire ecloud folder - name: delete entire ecloud folder
file: file: