mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
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.
This commit is contained in:
@@ -4,10 +4,11 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Set dnsconfig.
|
- name: Set dnsconfig forwarders.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
- ip_address: 2001:4860:4860::8888
|
- ip_address: 2001:4860:4860::8888
|
||||||
port: 53
|
port: 53
|
||||||
|
action: member
|
||||||
state: absent
|
state: absent
|
||||||
|
|||||||
13
playbooks/dnsconfig/forwarders-present.yml
Normal file
13
playbooks/dnsconfig/forwarders-present.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user