mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
Fix failed/changed_when
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user