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

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.
parent 5c66c5bd
Branches
Tags
No related merge requests found
...@@ -31,7 +31,7 @@ ...@@ -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 @@ ...@@ -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 @@ ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment