mirror of https://github.com/ceph/ceph-ansible.git
Better --check compatibility for ceph-common role
Carefully chosen "always_run: true" parameters for read-only tasks that register variables. This enables --check runs (at least on deployed clusters).pull/1117/head
parent
90a28b8b41
commit
3eef386532
|
@ -169,12 +169,14 @@
|
||||||
shell: "stat /var/run/ceph/*.asok > /dev/null 2>&1"
|
shell: "stat /var/run/ceph/*.asok > /dev/null 2>&1"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
always_run: true
|
||||||
register: socket
|
register: socket
|
||||||
|
|
||||||
- name: check for a rados gateway socket
|
- name: check for a rados gateway socket
|
||||||
shell: "stat {{ rbd_client_admin_socket_path }}*.asok > /dev/null 2>&1"
|
shell: "stat {{ rbd_client_admin_socket_path }}*.asok > /dev/null 2>&1"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
always_run: true
|
||||||
register: socketrgw
|
register: socketrgw
|
||||||
|
|
||||||
- name: create a local fetch directory if it does not exist
|
- name: create a local fetch directory if it does not exist
|
||||||
|
@ -197,6 +199,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: cluster_uuid
|
register: cluster_uuid
|
||||||
become: false
|
become: false
|
||||||
|
always_run: true
|
||||||
when: generate_fsid
|
when: generate_fsid
|
||||||
|
|
||||||
- name: create ceph conf directory
|
- name: create ceph conf directory
|
||||||
|
|
Loading…
Reference in New Issue