ansible/roles/acme/tasks/remove_conflicting.yaml

30 lines
567 B
YAML

---
- name: Remove acmetool from apt
apt:
name: acmetool
state: absent
- name: Remove files
file:
state: absent
path: "{{ item }}"
with_items:
- /etc/cron.d/acmetool
- /usr/local/bin/acmetool
- /var/lib/acme
- name: Remove certbot from apt
apt:
name: [ letsencrypt, certbot ]
state: absent
autoremove: yes
- name: Remove variable directories
file:
state: absent
path: /usr/local/bin/acmetool
with_items:
- /etc/letsencrypt
- /var/letsencrypt
- /var/lib/letsencrypt
- /var/log/letsencrypt