Merge pull request #1181 from tynorth-cisco/key-issue

Change attribute call to .get call in ceph keys
pull/1075/merge
Sébastien Han 2016-12-14 12:35:07 +01:00 committed by GitHub
commit e7f0dfb777
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@
owner: "{{ key_owner }}"
group: "{{ key_group }}"
with_items:
- "{{ ceph_keys.stdout_lines }}"
- "{{ ceph_keys.get('stdout_lines') | default([]) }}"
when: cephx
- name: copy keys to the ansible server
@ -45,7 +45,7 @@
flat: yes
run_once: true
with_items:
- "{{ ceph_keys.stdout_lines }}"
- "{{ ceph_keys.get('stdout_lines') | default([]) }}"
- /var/lib/ceph/bootstrap-osd/{{ cluster }}.keyring
- /var/lib/ceph/bootstrap-rgw/{{ cluster }}.keyring
- /var/lib/ceph/bootstrap-mds/{{ cluster }}.keyring