]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix for ceph-rgw role 955/head
authorIvan Font <ivan.font@redhat.com>
Wed, 24 Aug 2016 07:30:05 +0000 (00:30 -0700)
committerIvan Font <ivan.font@redhat.com>
Wed, 24 Aug 2016 07:30:05 +0000 (00:30 -0700)
- Short-circuit conditional to prevent dereferencing an undefined
  dictionary variable

Signed-off-by: Ivan Font <ivan.font@redhat.com>
roles/ceph-rgw/tasks/docker/copy_configs.yml

index b63866e002cf71f455ade303f138678db79d6ee1..696f783c9f3b3ceab7a800e45ce3c99f12b0d0ad 100644 (file)
 - 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]