]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Do not set key permissions with cephx: false 560/head
authorChris St. Pierre <chris.a.st.pierre@gmail.com>
Tue, 23 Feb 2016 17:33:03 +0000 (11:33 -0600)
committerChris St. Pierre <chris.a.st.pierre@gmail.com>
Tue, 23 Feb 2016 17:34:27 +0000 (11:34 -0600)
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.

roles/ceph-mon/tasks/ceph_keys.yml

index 544478cfa88b9a22bae9031daafe9502642de244..f255ef5deca1331bc4586b90f3f6cb677f527ffa 100644 (file)
@@ -33,6 +33,7 @@
     group: root
   with_items:
     - "{{ ceph_keys.stdout_lines }}"
+  when: cephx
 
 - name: copy keys to the ansible server
   fetch: