Adjust conditions
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
db06d34bfd
commit
77b9de661e
1 changed files with 19 additions and 15 deletions
|
@ -237,14 +237,18 @@
|
||||||
failed_when: "'no modifications to be performed' not in output.stderr and output.rc != 0"
|
failed_when: "'no modifications to be performed' not in output.stderr and output.rc != 0"
|
||||||
|
|
||||||
- name: Configure password policy
|
- name: Configure password policy
|
||||||
command: ipa pwpolicy-mod global_policy --maxlife=0 --minlife=0 --history=0 --minclasses=0 --minlength=0 --maxfail=0
|
ipapwpolicy:
|
||||||
|
minlife: 0
|
||||||
|
maxlife: 0
|
||||||
|
history: 0
|
||||||
|
minclasses: 0
|
||||||
|
minlength: 0
|
||||||
|
maxfail: 0
|
||||||
|
ipaadmin_password: "{{ ipa_admin_password }}"
|
||||||
tags:
|
tags:
|
||||||
- ipa/server
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: pwpolicy_output
|
|
||||||
changed_when: "'no modifications to be performed' not in pwpolicy_output.stderr"
|
|
||||||
failed_when: "'no modifications to be performed' not in pwpolicy_output.stderr and pwpolicy_output.rc != 0"
|
|
||||||
|
|
||||||
- name: Create fas_sync user
|
- name: Create fas_sync user
|
||||||
ipauser:
|
ipauser:
|
||||||
|
@ -296,8 +300,8 @@
|
||||||
- config
|
- config
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: create_output
|
register: create_output
|
||||||
changed_when: "'already exists' not in create_output.stdout"
|
changed_when: "'already exists' not in create_output.stderr"
|
||||||
failed_when: "'already exists' not in create_output.stdout and create_output.rc != 0"
|
failed_when: "'already exists' not in create_output.stderr and create_output.rc != 0"
|
||||||
|
|
||||||
- name: Update the certificate profile
|
- name: Update the certificate profile
|
||||||
command:
|
command:
|
||||||
|
@ -311,7 +315,7 @@
|
||||||
tags:
|
tags:
|
||||||
- ipa/server
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: "ipa_initial and 'already exists' in create_output.stdout"
|
when: "ipa_initial and 'already exists' in create_output.stderr"
|
||||||
|
|
||||||
# Create a new ACL linking the new profile and ipausers group (that all users are members of)
|
# Create a new ACL linking the new profile and ipausers group (that all users are members of)
|
||||||
- name: Create the CA ACL for the new certificate profile
|
- name: Create the CA ACL for the new certificate profile
|
||||||
|
@ -321,8 +325,8 @@
|
||||||
- config
|
- config
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: output
|
register: output
|
||||||
changed_when: "'already exists' not in output.stdout"
|
changed_when: "'already exists' not in output.stderr"
|
||||||
failed_when: "'already exists' not in output.stdout and output.rc != 0"
|
failed_when: "'already exists' not in output.stderr and output.rc != 0"
|
||||||
- name: Add the ipausers group to the CA ACL
|
- name: Add the ipausers group to the CA ACL
|
||||||
command: ipa caacl-add-user userCerts --group ipausers
|
command: ipa caacl-add-user userCerts --group ipausers
|
||||||
tags:
|
tags:
|
||||||
|
@ -330,8 +334,8 @@
|
||||||
- config
|
- config
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: output
|
register: output
|
||||||
changed_when: "'already exists' not in output.stdout"
|
changed_when: "'already exists' not in output.stderr"
|
||||||
failed_when: "'already exists' not in output.stdout and output.rc != 0"
|
failed_when: "'already exists' not in output.stderr and output.rc != 0"
|
||||||
- name: Add the ipausers group to the CA ACL
|
- name: Add the ipausers group to the CA ACL
|
||||||
command: ipa caacl-add-profile userCerts --certprofile userCerts
|
command: ipa caacl-add-profile userCerts --certprofile userCerts
|
||||||
tags:
|
tags:
|
||||||
|
@ -339,8 +343,8 @@
|
||||||
- config
|
- config
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: output
|
register: output
|
||||||
changed_when: "'already exists' not in output.stdout"
|
changed_when: "'already exists' not in output.stderr"
|
||||||
failed_when: "'already exists' not in output.stdout and output.rc != 0"
|
failed_when: "'already exists' not in output.stderr and output.rc != 0"
|
||||||
|
|
||||||
# HBAC
|
# HBAC
|
||||||
|
|
||||||
|
@ -389,8 +393,8 @@
|
||||||
- config
|
- config
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: output
|
register: output
|
||||||
changed_when: "'already exists' not in output.stdout"
|
changed_when: "'already exists' not in output.stderr"
|
||||||
failed_when: "'already exists' not in output.stdout and output.rc != 0"
|
failed_when: "'already exists' not in output.stderr and output.rc != 0"
|
||||||
|
|
||||||
- name: Setup the noggin privilege
|
- name: Setup the noggin privilege
|
||||||
command:
|
command:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue