IPA: disable the compat tree and the NIS tree

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2021-02-10 13:03:55 +01:00
parent 248807024f
commit d520072024
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
- name: restart ipa
command: ipactl restart

View file

@ -159,6 +159,30 @@
- ipa/server
- 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
ipauser:
name: admin