Stat info is in a subdict

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-10-13 12:18:53 +00:00
parent aeca7d159b
commit 82cb7596ab

View file

@ -56,7 +56,7 @@
tags:
- ipa
- config
when: not inventory_hostname.startswith("ipa01") and not replication_status.exists
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
- name: retrieve replica file
delegate_to: ipa01.phx2.fedoraproject.org
@ -66,7 +66,7 @@
tags:
- ipa
- config
when: not inventory_hostname.startswith("ipa01") and not replication_status.exists
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
- name: deploy replica file
copy: src=/tmp/ipa_replica_{{inventory_hostname}}.gpg
@ -75,7 +75,7 @@
tags:
- ipa
- config
when: not inventory_hostname.startswith("ipa01") and not replication_status.exists
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
- name: destroy replica file on ansible host
delegate_to: localhost
@ -83,7 +83,7 @@
tags:
- ipa
- config
when: not inventory_hostname.startswith("ipa01") and not replication_status.exists
when: not inventory_hostname.startswith("ipa01") and not replication_status.stat.exists
#
# switch this to use the systemd module as soon as ansible 2.2 is out.