From 9d71679c9ff7bdf2a307ba6af4fc3b48197f2245 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Tue, 23 Jan 2024 04:23:08 +0000 Subject: [PATCH] consolidate apt remove jobs --- ansible/roles/configure-consul/tasks/main.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/ansible/roles/configure-consul/tasks/main.yml b/ansible/roles/configure-consul/tasks/main.yml index 70af973..76eb242 100644 --- a/ansible/roles/configure-consul/tasks/main.yml +++ b/ansible/roles/configure-consul/tasks/main.yml @@ -77,20 +77,12 @@ state: restarted when: ansible_check_mode == false -# this is to stop bind9 from conflicting with systemd-resolved -- name: Remove bind9 - 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 +# this is to stop bind9 and pdns from conflicting with systemd-resolved +- name: Remove bind9 and pdns become: true ansible.builtin.apt: name: + - bind9 - pdns-backend-bind - pdns-recursor - pdns-server