Create an retrieve replica file for ipa02+

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-10-13 12:03:57 +00:00
parent 71d48d76bf
commit 9edab19d4e

View file

@ -38,6 +38,20 @@
- config - config
when: inventory_hostname.startswith("ipa01") when: inventory_hostname.startswith("ipa01")
- name: create replica file
delegate: ipa01.phx2.fedoraproject.org
command: ipa-replica-prepare
--password={{ipa_dm_password}}
--ip-address={{eth0_ip}}
creates=/var/lib/ipa/replica-info-{{inventory_hostname}}.gpg
when: env != "staging" and not inventory_hostname.startswith("ipa01")
- name: retrieve replica file
delegate: ipa01.phx2.fedoraproject.org
fetch: src=/var/lib/ipa/replica-info-{{inventory_hostname}}.gpg
dest=/tmp/ipa_replica_{{inventory_hostname}}
when: env != "staging" and not inventory_hostname.startswith("ipa01")
# #
# switch this to use the systemd module as soon as ansible 2.2 is out. # switch this to use the systemd module as soon as ansible 2.2 is out.
# #