From 45f583b1ed80d78322f1170267cc39daf3904124 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman <rjeffman@redhat.com> Date: Mon, 24 Jan 2022 15:55:18 -0300 Subject: [PATCH] dnsconfig: Add 'action: member' to dnsconfig example playbooks. As of verison 1.6.1 of ansible-freeipa, ipadnsconfig supports 'action: member' to manage DNS forwardes, and requires the use of this action if 'state: present'. This patch fixes the playbook examples. --- playbooks/dnsconfig/forwarders-absent.yml | 3 ++- playbooks/dnsconfig/forwarders-present.yml | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 playbooks/dnsconfig/forwarders-present.yml diff --git a/playbooks/dnsconfig/forwarders-absent.yml b/playbooks/dnsconfig/forwarders-absent.yml index 21a393dd..adcdb5d8 100644 --- a/playbooks/dnsconfig/forwarders-absent.yml +++ b/playbooks/dnsconfig/forwarders-absent.yml @@ -4,10 +4,11 @@ become: true tasks: - - name: Set dnsconfig. + - name: Set dnsconfig forwarders. ipadnsconfig: forwarders: - ip_address: 8.8.4.4 - ip_address: 2001:4860:4860::8888 port: 53 + action: member state: absent diff --git a/playbooks/dnsconfig/forwarders-present.yml b/playbooks/dnsconfig/forwarders-present.yml new file mode 100644 index 00000000..4c0d25aa --- /dev/null +++ b/playbooks/dnsconfig/forwarders-present.yml @@ -0,0 +1,13 @@ +--- +- name: Playbook to handle global DNS configuration + hosts: ipaserver + become: true + + tasks: + - name: Set dnsconfig forwarders. + ipadnsconfig: + forwarders: + - ip_address: 8.8.4.4 + - ip_address: 2001:4860:4860::8888 + port: 53 + action: member -- GitLab