mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-30 03:14:42 +00:00
test_host_random.yml: Use result.failed also for failed_when
For failed_when result.failed should be used to make sure that the task fails if there was an error.
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
force: yes
|
force: yes
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
register: ipahost
|
register: ipahost
|
||||||
failed_when: not ipahost.changed
|
failed_when: not ipahost.changed or ipahost.failed
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
force: yes
|
force: yes
|
||||||
update_password: on_create
|
update_password: on_create
|
||||||
register: ipahost
|
register: ipahost
|
||||||
failed_when: not ipahost.changed
|
failed_when: not ipahost.changed or ipahost.failed
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
random: yes
|
random: yes
|
||||||
update_password: always
|
update_password: always
|
||||||
register: ipahost
|
register: ipahost
|
||||||
failed_when: ipahost.changed
|
failed_when: ipahost.changed or not ipahost.failed
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
|
|||||||
Reference in New Issue
Block a user