Do not set key permissions with cephx: false

If cephx is set to false, the "set keys permissions" task fails with:

file ({# ceph_keys.stdout_lines #}) is absent, cannot continue

This skips that step when cephx is false.
pull/560/head
Chris St. Pierre 2016-02-23 11:33:03 -06:00
parent 63d7824c9c
commit 1e9f4faa44
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@
group: root group: root
with_items: with_items:
- "{{ ceph_keys.stdout_lines }}" - "{{ ceph_keys.stdout_lines }}"
when: cephx
- name: copy keys to the ansible server - name: copy keys to the ansible server
fetch: fetch: