mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-31 03:44:41 +00:00
test_host_bool_params.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:
@@ -30,7 +30,7 @@
|
|||||||
ok_as_delegate: yes
|
ok_as_delegate: yes
|
||||||
ok_to_auth_as_delegate: yes
|
ok_to_auth_as_delegate: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth, ok_as_delegate and ok_to_auth_as_delegate again
|
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth, ok_as_delegate and ok_to_auth_as_delegate again
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
ok_as_delegate: yes
|
ok_as_delegate: yes
|
||||||
ok_to_auth_as_delegate: yes
|
ok_to_auth_as_delegate: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth, ok_as_delegate and ok_to_auth_as_delegate set to no
|
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth, ok_as_delegate and ok_to_auth_as_delegate set to no
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
ok_as_delegate: no
|
ok_as_delegate: no
|
||||||
ok_to_auth_as_delegate: no
|
ok_to_auth_as_delegate: no
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth, ok_as_delegate and ok_to_auth_as_delegate set to no again
|
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth, ok_as_delegate and ok_to_auth_as_delegate set to no again
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
ok_as_delegate: no
|
ok_as_delegate: no
|
||||||
ok_to_auth_as_delegate: no
|
ok_to_auth_as_delegate: no
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth
|
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
name: "{{ host1_fqdn }}"
|
name: "{{ host1_fqdn }}"
|
||||||
requires_pre_auth: yes
|
requires_pre_auth: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth again
|
- name: Host "{{ host1_fqdn }}" present with requires_pre_auth again
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
name: "{{ host1_fqdn }}"
|
name: "{{ host1_fqdn }}"
|
||||||
requires_pre_auth: yes
|
requires_pre_auth: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with ok_as_delegate
|
- name: Host "{{ host1_fqdn }}" present with ok_as_delegate
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -84,7 +84,7 @@
|
|||||||
name: "{{ host1_fqdn }}"
|
name: "{{ host1_fqdn }}"
|
||||||
ok_as_delegate: yes
|
ok_as_delegate: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with ok_as_delegate again
|
- name: Host "{{ host1_fqdn }}" present with ok_as_delegate again
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
name: "{{ host1_fqdn }}"
|
name: "{{ host1_fqdn }}"
|
||||||
ok_as_delegate: yes
|
ok_as_delegate: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with ok_to_auth_as_delegate
|
- name: Host "{{ host1_fqdn }}" present with ok_to_auth_as_delegate
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -100,7 +100,7 @@
|
|||||||
name: "{{ host1_fqdn }}"
|
name: "{{ host1_fqdn }}"
|
||||||
ok_to_auth_as_delegate: yes
|
ok_to_auth_as_delegate: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: not result.changed
|
failed_when: not result.changed or result.failed
|
||||||
|
|
||||||
- name: Host "{{ host1_fqdn }}" present with ok_to_auth_as_delegate again
|
- name: Host "{{ host1_fqdn }}" present with ok_to_auth_as_delegate again
|
||||||
ipahost:
|
ipahost:
|
||||||
@@ -108,7 +108,7 @@
|
|||||||
name: "{{ host1_fqdn }}"
|
name: "{{ host1_fqdn }}"
|
||||||
ok_to_auth_as_delegate: yes
|
ok_to_auth_as_delegate: yes
|
||||||
register: result
|
register: result
|
||||||
failed_when: result.changed
|
failed_when: result.changed or result.failed
|
||||||
|
|
||||||
- name: Host absent
|
- name: Host absent
|
||||||
ipahost:
|
ipahost:
|
||||||
|
|||||||
Reference in New Issue
Block a user