From: Chris St. Pierre Date: Tue, 23 Feb 2016 17:33:03 +0000 (-0600) Subject: Do not set key permissions with cephx: false X-Git-Tag: v1.0.0~22^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F560%2Fhead;p=ceph-ansible.git 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. --- diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index 544478cfa..f255ef5de 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -33,6 +33,7 @@ group: root with_items: - "{{ ceph_keys.stdout_lines }}" + when: cephx - name: copy keys to the ansible server fetch: