Skip to content
Snippets Groups Projects
Commit 0e11119f authored by Thomas Woerner's avatar Thomas Woerner
Browse files

test_dnsrecord.yml: Add failed_when test for A rec with reverse, NS record

The test to make sure that the task set the changed flag and did not
fail was missing. Also the repeated task to make sure that the task did
not set the change flag.
parent df97de31
No related branches found
No related tags found
No related merge requests found
...@@ -432,6 +432,18 @@ ...@@ -432,6 +432,18 @@
name: host04 name: host04
ip_address: "{{ ipv4_prefix }}.114" ip_address: "{{ ipv4_prefix }}.114"
reverse: yes reverse: yes
register: result
failed_when: not result.changed or result.failed
- name: Ensure that 'host04' has a A record with reverse, for NS record, again.
ipadnsrecord:
ipaadmin_password: SomeADMINpassword
zone_name: "{{ testzone }}"
name: host04
ip_address: "{{ ipv4_prefix }}.114"
reverse: yes
register: result
failed_when: result.changed or result.failed
- name: Ensure that 'host04' has NS record. - name: Ensure that 'host04' has NS record.
ipadnsrecord: ipadnsrecord:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment