ansible/roles/acme/tasks/remove_conflicting.yaml

16 lines
348 B
YAML

---
- name: Remove certbot from apt
ansible.builtin.apt:
name: [ letsencrypt, certbot ]
state: absent
autoremove: yes
- name: Remove variable directories
ansible.builtin.file:
state: absent
path: "{{ item }}"
with_items:
- /etc/letsencrypt
- /var/letsencrypt
- /var/lib/letsencrypt
- /var/log/letsencrypt