Better --check compatibility for ceph-mds role

Carefully chosen "always_run: true" parameters for read-only tasks that
register variables. This enables --check runs (at least on deployed
clusters).
pull/1121/head
Daniel Marks 2016-11-26 20:52:24 +01:00
parent 7371e9a668
commit 7b1dbbbdf8
5 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
with_items: "{{ ceph_config_keys }}"
changed_when: false
failed_when: false
always_run: true
register: statleftover
- name: fail if we find existing cluster files

View File

@ -6,6 +6,7 @@
changed_when: false
failed_when: false
run_once: true
always_run: true
register: ceph_version
- set_fact:

View File

@ -14,6 +14,7 @@
changed_when: false
become: false
failed_when: false
always_run: true
register: statconfig
- name: try to fetch ceph config and keys

View File

@ -4,10 +4,12 @@
register: ceph_health
changed_when: false
failed_when: false
always_run: true
- name: check if it is Atomic host
stat: path=/run/ostree-booted
register: stat_ostree
always_run: true
- name: set fact for using Atomic host
set_fact:

View File

@ -3,6 +3,7 @@
command: getenforce
register: sestatus
changed_when: false
always_run: true
- name: set selinux permissions
shell: chcon -Rt svirt_sandbox_file_t {{ item }}