From 9edab19d4ea12b930830dcbcd03aa1bfe728a9c9 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Thu, 13 Oct 2016 12:03:57 +0000 Subject: [PATCH] Create an retrieve replica file for ipa02+ Signed-off-by: Patrick Uiterwijk --- roles/ipa/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/roles/ipa/tasks/main.yml b/roles/ipa/tasks/main.yml index de511ac887..5921273edf 100644 --- a/roles/ipa/tasks/main.yml +++ b/roles/ipa/tasks/main.yml @@ -38,6 +38,20 @@ - config 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. #