IPA: fix the new tasks
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
cd2e75bc4f
commit
5868f77c53
1 changed files with 4 additions and 14 deletions
|
@ -264,11 +264,6 @@
|
||||||
- ipa/server
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
|
|
||||||
#- name: Check if we should import or update the certificate profile
|
|
||||||
# stat:
|
|
||||||
# path: /etc/ipa/certprofiles/userCerts.conf
|
|
||||||
# register: st_profile
|
|
||||||
|
|
||||||
- name: Copy the certificate profile for users
|
- name: Copy the certificate profile for users
|
||||||
template:
|
template:
|
||||||
src: userCerts.conf
|
src: userCerts.conf
|
||||||
|
@ -289,11 +284,10 @@
|
||||||
tags:
|
tags:
|
||||||
- ipa/server
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
#when: ipa_initial and not st_profile.stat.exists
|
|
||||||
when: ipa_initial
|
when: ipa_initial
|
||||||
register: output
|
register: create_output
|
||||||
changed_when: "'Modified profile' in output.stdout"
|
changed_when: "'already exists' not in create_output.stdout"
|
||||||
failed_when: "'no modifications to be performed' not in output.stderr and output.rc != 0"
|
failed_when: "'already exists' not in create_output.stdout and create_output.rc != 0"
|
||||||
|
|
||||||
- name: Update the certificate profile
|
- name: Update the certificate profile
|
||||||
command:
|
command:
|
||||||
|
@ -307,11 +301,7 @@
|
||||||
tags:
|
tags:
|
||||||
- ipa/server
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
#when: ipa_initial and st_profile.stat.exists
|
when: "ipa_initial and 'already exists' in create_output.stdout"
|
||||||
when: ipa_initial
|
|
||||||
register: update_output
|
|
||||||
changed_when: "'Modified profile' in output.stdout"
|
|
||||||
failed_when: "'no modifications to be performed' not in output.stderr and output.rc != 0"
|
|
||||||
|
|
||||||
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue