mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-25 00:44:42 +00:00
test_users_invalid_cert.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:
@@ -39,7 +39,7 @@
|
|||||||
- "{{ lookup('file', 'cert1.b64', rstrip=False) }}"
|
- "{{ lookup('file', 'cert1.b64', rstrip=False) }}"
|
||||||
action: member
|
action: member
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: User test cert members absent
|
- name: User test cert members absent
|
||||||
ipauser:
|
ipauser:
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
state: absent
|
state: absent
|
||||||
action: member
|
action: member
|
||||||
#register: result
|
#register: result
|
||||||
#failed_when: not result.changed
|
#failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Remove certificate files.
|
- name: Remove certificate files.
|
||||||
shell:
|
shell:
|
||||||
|
|||||||
Reference in New Issue
Block a user