From 14811ffd3e6e33896cfd153db50f730d7126e52c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 9 Oct 2021 11:34:44 -0400 Subject: [PATCH] Get uninstall working --- uninstall.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/uninstall.yml b/uninstall.yml index 34c24d2..6788669 100644 --- a/uninstall.yml +++ b/uninstall.yml @@ -22,7 +22,7 @@ - name: stop docker-compose docker_compose: - project_src: '{{lemmy_base_dir}}' + project_src: '{{lemmy_base_dir}}/{{domain}}' state: absent - name: delete data @@ -30,16 +30,8 @@ path: '{{item.path}}' state: absent with_items: - - path: '{{lemmy_base_dir}}' - - path: '/etc/nginx/sites-enabled/lemmy.conf' - - - name: Remove a volume - docker_volume: - name: '{{item.name}}' - state: absent - with_items: - - name: 'lemmy_lemmy_db' - - name: 'lemmy_lemmy_pictshare' + - path: '{{lemmy_base_dir}}/{{domain}}' + - path: '/etc/nginx/sites-enabled/{{domain}}.conf' - name: delete entire ecloud folder file: