mirror of https://github.com/ceph/ceph-ansible.git
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
parent
7371e9a668
commit
7b1dbbbdf8
|
@ -16,6 +16,7 @@
|
||||||
with_items: "{{ ceph_config_keys }}"
|
with_items: "{{ ceph_config_keys }}"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
always_run: true
|
||||||
register: statleftover
|
register: statleftover
|
||||||
|
|
||||||
- name: fail if we find existing cluster files
|
- name: fail if we find existing cluster files
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
run_once: true
|
run_once: true
|
||||||
|
always_run: true
|
||||||
register: ceph_version
|
register: ceph_version
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
become: false
|
become: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
always_run: true
|
||||||
register: statconfig
|
register: statconfig
|
||||||
|
|
||||||
- name: try to fetch ceph config and keys
|
- name: try to fetch ceph config and keys
|
||||||
|
|
|
@ -4,10 +4,12 @@
|
||||||
register: ceph_health
|
register: ceph_health
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
always_run: true
|
||||||
|
|
||||||
- name: check if it is Atomic host
|
- name: check if it is Atomic host
|
||||||
stat: path=/run/ostree-booted
|
stat: path=/run/ostree-booted
|
||||||
register: stat_ostree
|
register: stat_ostree
|
||||||
|
always_run: true
|
||||||
|
|
||||||
- name: set fact for using Atomic host
|
- name: set fact for using Atomic host
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
command: getenforce
|
command: getenforce
|
||||||
register: sestatus
|
register: sestatus
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
always_run: true
|
||||||
|
|
||||||
- name: set selinux permissions
|
- name: set selinux permissions
|
||||||
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
|
shell: chcon -Rt svirt_sandbox_file_t {{ item }}
|
||||||
|
|
Loading…
Reference in New Issue