Skip to content

Commit c33ad3f

Browse files
classabbyampthe-maldridge
authored andcommitted
ansible: decommission acmetool
acmetool is a submodule role so decommission it with a new role
1 parent 269126e commit c33ad3f

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

ansible/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
become_user: root
55
become_method: sudo
66
roles:
7-
- acmetool
87
- buildmaster
8+
- unacmetool
99

1010
- hosts: buildslave
1111
become: yes
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
- name: Remove acmetool data root
3+
file:
4+
path: /var/lib/acme
5+
state: absent
6+
7+
- name: Remove renewal crontab
8+
file:
9+
path: /etc/cron.d/acmetool
10+
state: absent
11+
12+
- name: Remove acmetool firewall rules
13+
file:
14+
path: /etc/iptables.d/acmetool.rules
15+
state: absent
16+
notify:
17+
- iptables
18+
19+
- name: Remove Service Hooks
20+
file:
21+
path: /usr/libexec/acme/hooks/sv_restart
22+
state: absent
23+
when: acmetool.services is defined
24+
25+
- name: Remove acmetool
26+
xbps:
27+
pkg: acmetool
28+
state: absent

0 commit comments

Comments
 (0)