mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-16 13:56:03 +08:00
Improve exitcode
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user