IPA: disable the compat tree and the NIS tree
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
248807024f
commit
d520072024
2 changed files with 27 additions and 0 deletions
3
roles/ipa/server/handlers/main.yml
Normal file
3
roles/ipa/server/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
- name: restart ipa
|
||||||
|
command: ipactl restart
|
|
@ -159,6 +159,30 @@
|
||||||
- ipa/server
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
|
|
||||||
|
- name: Disable the compat tree
|
||||||
|
shell: echo "{{ipa_dm_password}}" | ipa-compat-manage disable
|
||||||
|
tags:
|
||||||
|
- ipa/server
|
||||||
|
- config
|
||||||
|
when: ipa_initial
|
||||||
|
register: output
|
||||||
|
changed_when: "'Plugin Disabled' in output.stdout"
|
||||||
|
failed_when: "'Plugin Disabled' not in output.stderr and output.rc != 0"
|
||||||
|
notify:
|
||||||
|
- restart ipa
|
||||||
|
|
||||||
|
- name: Disable the nis tree
|
||||||
|
shell: echo "{{ipa_dm_password}}" | ipa-nis-manage disable
|
||||||
|
tags:
|
||||||
|
- ipa/server
|
||||||
|
- config
|
||||||
|
when: ipa_initial
|
||||||
|
register: output
|
||||||
|
changed_when: "'Plugin Disabled' in output.stdout"
|
||||||
|
failed_when: "'Plugin Disabled' not in output.stderr and output.rc != 0"
|
||||||
|
notify:
|
||||||
|
- restart ipa
|
||||||
|
|
||||||
- name: Set the expiration date for the admin user
|
- name: Set the expiration date for the admin user
|
||||||
ipauser:
|
ipauser:
|
||||||
name: admin
|
name: admin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue