From: Daniel Marks Date: Thu, 24 Nov 2016 10:54:10 +0000 (+0100) Subject: Better --check compatibility for ceph-mon role X-Git-Tag: v2.1.0~49^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=320dba74900be5122361d8a367fe7a0559ea0f27;p=ceph-ansible.git 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). --- 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: