mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-06 21:33:14 +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
|
||||
update_password: on_create
|
||||
register: ipahost
|
||||
failed_when: not ipahost.changed
|
||||
failed_when: not ipahost.changed or ipahost.failed
|
||||
|
||||
- assert:
|
||||
that:
|
||||
@@ -60,7 +60,7 @@
|
||||
force: yes
|
||||
update_password: on_create
|
||||
register: ipahost
|
||||
failed_when: not ipahost.changed
|
||||
failed_when: not ipahost.changed or ipahost.failed
|
||||
|
||||
- assert:
|
||||
that:
|
||||
@@ -85,7 +85,7 @@
|
||||
random: yes
|
||||
update_password: always
|
||||
register: ipahost
|
||||
failed_when: ipahost.changed
|
||||
failed_when: ipahost.changed or not ipahost.failed
|
||||
|
||||
- assert:
|
||||
that:
|
||||
|
||||
Reference in New Issue
Block a user