]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
common: fix rundep installation 1023/head
authorSébastien Han <seb@redhat.com>
Mon, 10 Oct 2016 07:57:37 +0000 (16:57 +0900)
committerSébastien Han <seb@redhat.com>
Mon, 10 Oct 2016 07:57:37 +0000 (16:57 +0900)
see: https://bugzilla.redhat.com/show_bug.cgi?id=1382878

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-common/tasks/installs/install_on_redhat.yml

index 40dfa6882efb7bde5ded1f829ee186f344578e39..bb16932ad1445e390b64ce8eb54a2c4bd0b4c37d 100644 (file)
@@ -58,7 +58,7 @@
   copy:
     src: "{{ansible_dir}}/rundep"
     dest: "{{ item }}"
-  with_items: "{{ rundep_location }}.stdout_lines"
+  with_items: "{{ (rundep_location|default({})).stdout_lines|default([]) }}"
   when:
     - ceph_origin == 'local'
     - use_installer
@@ -66,7 +66,7 @@
 - name: install ceph dependencies
   script: "{{ ansible_dir }}/rundep_installer.sh {{ item }}"
   become: true
-  with_items: "{{ rundep_location }}.stdout_lines"
+  with_items: "{{ (rundep_location|default({})).stdout_lines|default([]) }}"
   when:
     - ceph_origin == 'local'
     - use_installer