Merge "Fix ceph-mon existing cluster detection logic"
This commit is contained in:
commit
0416913fb5
@ -11,19 +11,18 @@
|
|||||||
always_run: True
|
always_run: True
|
||||||
run_once: True
|
run_once: True
|
||||||
|
|
||||||
# TODO(SamYaple): Improve failed_when check
|
- name: Creating ceph_mon_conifg volume
|
||||||
- name: Checking if a previous cluster exists
|
kolla_docker:
|
||||||
command: docker exec ceph_mon_data stat /etc/ceph/ceph.monmap
|
action: "create_volume"
|
||||||
register: exists
|
common_options: "{{ docker_common_options }}"
|
||||||
changed_when: False
|
name: "ceph_mon_config"
|
||||||
failed_when: False
|
register: ceph_mon_config_volume
|
||||||
always_run: True
|
|
||||||
|
|
||||||
- name: Writing hostname of host with existing cluster files to temp file
|
- name: Writing hostname of host with existing cluster files to temp file
|
||||||
local_action: copy content={{ ansible_hostname }} dest=/tmp/kolla_ceph_cluster mode=0600
|
local_action: copy content={{ ansible_hostname }} dest=/tmp/kolla_ceph_cluster mode=0600
|
||||||
changed_when: False
|
changed_when: False
|
||||||
always_run: True
|
always_run: True
|
||||||
when: exists.rc == 0
|
when: not ceph_mon_config_volume.changed
|
||||||
|
|
||||||
- name: Registering host from temp file
|
- name: Registering host from temp file
|
||||||
set_fact:
|
set_fact:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user