6 - name: confirm_uninstall
7 prompt: "Do you really want to uninstall Lemmy? This will delete all data and can not be reverted [yes/no]"
11 prompt: "Delete certificates? Select 'no' if you want to reinstall Lemmy [yes/no]"
15 - name: end play if no confirmation was given
17 msg: "Uninstall cancelled, doing nothing"
18 when: not confirm_uninstall|bool
21 when: not confirm_uninstall|bool
23 - name: stop docker-compose
29 file: path={{item.path}} state=absent
32 - { path: '/etc/nginx/sites-enabled/lemmy.conf' }
34 - name: Remove a volume
35 docker_volume: name={{item.name}} state=absent
37 - { name: 'lemmy_lemmy_db' }
38 - { name: 'lemmy_lemmy_pictshare' }
40 - name: delete entire ecloud folder
41 file: path='/mnt/repo-base/' state=absent
42 when: delete_certs|bool
44 - name: remove certbot cronjob
46 name=certbot-renew-lemmy