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 }}"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
always_run: true
|
||||
register: statleftover
|
||||
|
||||
- name: fail if we find existing cluster files
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
changed_when: false
|
||||
failed_when: false
|
||||
run_once: true
|
||||
always_run: true
|
||||
register: ceph_version
|
||||
|
||||
- set_fact:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue