consolidate apt remove jobs
This commit is contained in:
parent
baa077cb1e
commit
9d71679c9f
1 changed files with 3 additions and 11 deletions
|
@ -77,20 +77,12 @@
|
||||||
state: restarted
|
state: restarted
|
||||||
when: ansible_check_mode == false
|
when: ansible_check_mode == false
|
||||||
|
|
||||||
# this is to stop bind9 from conflicting with systemd-resolved
|
# this is to stop bind9 and pdns from conflicting with systemd-resolved
|
||||||
- name: Remove bind9
|
- name: Remove bind9 and pdns
|
||||||
become: true
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: bind9
|
|
||||||
state: absent
|
|
||||||
purge: true
|
|
||||||
when: ansible_os_family == "Debian"
|
|
||||||
|
|
||||||
# this is to stop pdns from conflicting with systemd-resolved
|
|
||||||
- name: Remove pdns
|
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
|
- bind9
|
||||||
- pdns-backend-bind
|
- pdns-backend-bind
|
||||||
- pdns-recursor
|
- pdns-recursor
|
||||||
- pdns-server
|
- pdns-server
|
||||||
|
|
Loading…
Reference in a new issue