Skip to content

Commit

Permalink
ansible: decommission acmetool
Browse files Browse the repository at this point in the history
acmetool is a submodule role so decommission it with a new role
  • Loading branch information
classabbyamp committed Sep 29, 2024
1 parent 363a7b2 commit 92579e8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
become_user: root
become_method: sudo
roles:
- acmetool
- buildmaster
- unacmetool

- hosts: buildslave
become: yes
Expand Down
28 changes: 28 additions & 0 deletions ansible/roles/unacmetool/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- name: Remove acmetool data root
file:
path: /var/lib/acme
state: absent

- name: Remove renewal crontab
file:
path: /etc/cron.d/acmetool
state: absent

- name: Remove acmetool firewall rules
file:
path: /etc/iptables.d/acmetool.rules
state: absent
notify:
- iptables

- name: Remove Service Hooks
file:
path: /usr/libexec/acme/hooks/sv_restart
state: absent
when: acmetool.services is defined

- name: Remove acmetool
xbps:
pkg: acmetool
state: absent

0 comments on commit 92579e8

Please # to comment.