Move ipa to ipa/server
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
70dc0c4c0f
commit
c74bd6d108
3 changed files with 13 additions and 13 deletions
|
@ -41,7 +41,7 @@
|
||||||
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
- "{{ vars_path }}/{{ ansible_distribution }}.yml"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- ipa
|
- ipa/server
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- include: "{{ handlers }}/restart_services.yml"
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
|
@ -8,13 +8,13 @@
|
||||||
- ipa-server
|
- ipa-server
|
||||||
- ipa-server-dns
|
- ipa-server-dns
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- packages
|
- packages
|
||||||
|
|
||||||
- name: enable haveged
|
- name: enable haveged
|
||||||
service: name=haveged state=started enabled=yes
|
service: name=haveged state=started enabled=yes
|
||||||
tags:
|
tags:
|
||||||
- haveged
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: install IPA
|
- name: install IPA
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
--log-file=/var/log/ipainstall.log
|
--log-file=/var/log/ipainstall.log
|
||||||
creates=/etc/ipa/default.conf
|
creates=/etc/ipa/default.conf
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith("ipa01")
|
when: inventory_hostname.startswith("ipa01")
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
--log-file=/var/log/ipakrainstall.log
|
--log-file=/var/log/ipakrainstall.log
|
||||||
creates=/var/log/ipakrainstall.log
|
creates=/var/log/ipakrainstall.log
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith("ipa01")
|
when: inventory_hostname.startswith("ipa01")
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
stat: path=/etc/ipa/default.conf
|
stat: path=/etc/ipa/default.conf
|
||||||
register: replication_status
|
register: replication_status
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01")
|
when: not inventory_hostname.startswith("ipa01")
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
{{inventory_hostname}}
|
{{inventory_hostname}}
|
||||||
creates=/var/lib/ipa/replica-info-{{inventory_hostname}}.gpg
|
creates=/var/lib/ipa/replica-info-{{inventory_hostname}}.gpg
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
dest=/tmp/ipa_replica_{{inventory_hostname}}.gpg
|
dest=/tmp/ipa_replica_{{inventory_hostname}}.gpg
|
||||||
flat=yes
|
flat=yes
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
dest=/root/ipa_replica_{{inventory_hostname}}.gpg
|
dest=/root/ipa_replica_{{inventory_hostname}}.gpg
|
||||||
mode=0600 owner=root group=root
|
mode=0600 owner=root group=root
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
file: path=/tmp/ipa_replica_{{inventory_hostname}}.gpg state=absent
|
file: path=/tmp/ipa_replica_{{inventory_hostname}}.gpg state=absent
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
/root/ipa_replica_{{inventory_hostname}}.gpg
|
/root/ipa_replica_{{inventory_hostname}}.gpg
|
||||||
creates=/etc/ipa/default.conf
|
creates=/etc/ipa/default.conf
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
|
||||||
|
|
||||||
|
@ -123,13 +123,13 @@
|
||||||
copy: src=configure-ipa.sh dest=/root/configure-ipa.sh mode=0700 owner=root group=root
|
copy: src=configure-ipa.sh dest=/root/configure-ipa.sh mode=0700 owner=root group=root
|
||||||
register: config_deployed
|
register: config_deployed
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith("ipa01")
|
when: inventory_hostname.startswith("ipa01")
|
||||||
|
|
||||||
- name: Run configuration script
|
- name: Run configuration script
|
||||||
command: /bin/bash /root/configure-ipa.sh {{ipa_dm_password}} {{ipa_admin_password}}
|
command: /bin/bash /root/configure-ipa.sh {{ipa_dm_password}} {{ipa_admin_password}}
|
||||||
tags:
|
tags:
|
||||||
- ipa
|
- ipa/server
|
||||||
- config
|
- config
|
||||||
when: inventory_hostname.startswith("ipa01") and config_deployed.changed
|
when: inventory_hostname.startswith("ipa01") and config_deployed.changed
|
Loading…
Add table
Add a link
Reference in a new issue