Fix failed/changed_when
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
7db102973d
commit
9412da874f
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@
|
|||
- ipa/server
|
||||
- config
|
||||
when: inventory_hostname.startswith("ipa01")
|
||||
register: promote_output
|
||||
changed_when: "'already a member' not in promote_output.stderr"
|
||||
failed_when: "'already a member' not in promote_output.stderr and promote_output.rc != 0"
|
||||
|
||||
- name: Configure password policy
|
||||
command: ipa pwpolicy-mod global_policy --maxlife=0 --minlife=0 --history=0 --minclasses=0 --minlength=0 --maxfail=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue