mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-08-05 22:34:40 +00:00
Merge pull request #238 from rjeffman/fix_dnsconfig_passwd
Add admin password to the ipadnsconfig module tests.
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
# Setup.
|
# Setup.
|
||||||
- name: Ensure forwarders are absent.
|
- name: Ensure forwarders are absent.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
@@ -20,6 +21,7 @@
|
|||||||
|
|
||||||
- name: Set dnsconfig.
|
- name: Set dnsconfig.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
@@ -32,6 +34,7 @@
|
|||||||
|
|
||||||
- name: Set dnsconfig, with the same values.
|
- name: Set dnsconfig, with the same values.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
@@ -44,6 +47,7 @@
|
|||||||
|
|
||||||
- name: Ensure forwarder is absent.
|
- name: Ensure forwarder is absent.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
state: absent
|
state: absent
|
||||||
@@ -52,6 +56,7 @@
|
|||||||
|
|
||||||
- name: Ensure forwarder is absent, again.
|
- name: Ensure forwarder is absent, again.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
state: absent
|
state: absent
|
||||||
@@ -60,54 +65,63 @@
|
|||||||
|
|
||||||
- name: Disable global forwarders.
|
- name: Disable global forwarders.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forward_policy: none
|
forward_policy: none
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed
|
||||||
|
|
||||||
- name: Disable global forwarders, again.
|
- name: Disable global forwarders, again.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forward_policy: none
|
forward_policy: none
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed
|
||||||
|
|
||||||
- name: Re-enable global forwarders.
|
- name: Re-enable global forwarders.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forward_policy: first
|
forward_policy: first
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed
|
||||||
|
|
||||||
- name: Re-enable global forwarders, again.
|
- name: Re-enable global forwarders, again.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forward_policy: first
|
forward_policy: first
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed
|
||||||
|
|
||||||
- name: Disable PTR record synchronization.
|
- name: Disable PTR record synchronization.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
allow_sync_ptr: no
|
allow_sync_ptr: no
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed
|
||||||
|
|
||||||
- name: Disable PTR record synchronization, again.
|
- name: Disable PTR record synchronization, again.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
allow_sync_ptr: no
|
allow_sync_ptr: no
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed
|
||||||
|
|
||||||
- name: Re-enable PTR record synchronization.
|
- name: Re-enable PTR record synchronization.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
allow_sync_ptr: yes
|
allow_sync_ptr: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed
|
||||||
|
|
||||||
- name: Re-enable PTR record synchronization, again.
|
- name: Re-enable PTR record synchronization, again.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
allow_sync_ptr: yes
|
allow_sync_ptr: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed
|
||||||
|
|
||||||
- name: Ensure all forwarders are absent.
|
- name: Ensure all forwarders are absent.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
@@ -120,6 +134,7 @@
|
|||||||
|
|
||||||
- name: Ensure all forwarders are absent, again.
|
- name: Ensure all forwarders are absent, again.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
@@ -132,6 +147,7 @@
|
|||||||
# Cleanup.
|
# Cleanup.
|
||||||
- name: Ensure forwarders are absent.
|
- name: Ensure forwarders are absent.
|
||||||
ipadnsconfig:
|
ipadnsconfig:
|
||||||
|
ipaadmin_password: SomeADMINpassword
|
||||||
forwarders:
|
forwarders:
|
||||||
- ip_address: 8.8.8.8
|
- ip_address: 8.8.8.8
|
||||||
- ip_address: 8.8.4.4
|
- ip_address: 8.8.4.4
|
||||||
|
|||||||
Reference in New Issue
Block a user