From 1e9f4faa44a7b6189b2741d4385c7ff6870aea69 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 23 Feb 2016 11:33:03 -0600 Subject: [PATCH] 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. --- roles/ceph-mon/tasks/ceph_keys.yml | 1 + 1 file changed, 1 insertion(+) 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: