From: Ivan Font Date: Wed, 24 Aug 2016 07:30:05 +0000 (-0700) Subject: Fix for ceph-rgw role X-Git-Tag: v1.0.6~10^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F955%2Fhead;p=ceph-ansible.git Fix for ceph-rgw role - Short-circuit conditional to prevent dereferencing an undefined dictionary variable Signed-off-by: Ivan Font --- diff --git a/roles/ceph-rgw/tasks/docker/copy_configs.yml b/roles/ceph-rgw/tasks/docker/copy_configs.yml index b63866e00..696f783c9 100644 --- a/roles/ceph-rgw/tasks/docker/copy_configs.yml +++ b/roles/ceph-rgw/tasks/docker/copy_configs.yml @@ -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]