Add common roles from polyfloyd's playbookds
This commit is contained in:
parent
1332f49101
commit
e43ec3229f
23 changed files with 694 additions and 0 deletions
30
roles/acme/tasks/remove_conflicting.yaml
Normal file
30
roles/acme/tasks/remove_conflicting.yaml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
- 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
|
Loading…
Add table
Add a link
Reference in a new issue