From 320dba74900be5122361d8a367fe7a0559ea0f27 Mon Sep 17 00:00:00 2001 From: Daniel Marks Date: Thu, 24 Nov 2016 11:54:10 +0100 Subject: [PATCH] Better --check compatibility for ceph-mon role Carefully chosen "always_run: true" parameters for read-only tasks that register variables. This enables --check runs (at least on deployed clusters). --- roles/ceph-mon/tasks/ceph_keys.yml | 1 + roles/ceph-mon/tasks/deploy_monitors.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/ceph-mon/tasks/ceph_keys.yml b/roles/ceph-mon/tasks/ceph_keys.yml index 8f3e0d6a3..58d026847 100644 --- a/roles/ceph-mon/tasks/ceph_keys.yml +++ b/roles/ceph-mon/tasks/ceph_keys.yml @@ -25,6 +25,7 @@ shell: ls -1 /etc/ceph/*.keyring changed_when: false register: ceph_keys + always_run: true when: cephx - name: set keys permissions diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index cbdc1b0d9..740ae4eba 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -12,6 +12,7 @@ changed_when: false register: monitor_keyring become: false + always_run: true when: cephx - set_fact: