Improve exitcode
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
ec6df64c1a
commit
7a38dde130
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@
|
|||
- ipa/server
|
||||
- config
|
||||
when: inventory_hostname.startswith("ipa01")
|
||||
register: create_output
|
||||
changed_when: "'already exists' not in create_output.stderr"
|
||||
failed_when: "'already exists' not in create_output.stderr and create_output.exitcode != 0"
|
||||
|
||||
- name: Promote fas_sync user
|
||||
command: ipa group-add-member admins --users=fas_sync
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue