Fix for ceph-rgw role

- Short-circuit conditional to prevent dereferencing an undefined
  dictionary variable

Signed-off-by: Ivan Font <ivan.font@redhat.com>
pull/955/head
Ivan Font 2016-08-24 00:30:05 -07:00
parent 96f7f8b74e
commit 2073a72b39
1 changed files with 2 additions and 2 deletions

View File

@ -25,12 +25,12 @@
- name: push ceph files to the ansible server
fetch:
src: "{{ item.0 }}"
dest: "{{ fetch_directory }}/docker_mon_files/var/lib/ceph/radosgw/keyring"
dest: "{{ fetch_directory }}/docker_mon_files/var/lib/ceph/radosgw/{{ ansible_hostname }}/keyring"
flat: yes
with_together:
- rgw_config_keys
- statconfig.results
when:
- item.1.stat.exists == false
- nfs_obj_gw
- item.1.stat.exists == false
- inventory_hostname == groups.rgws[0]