Remove the dependency on SSH for monitors
To detect if we can copy keyrings off a monitor, we do not need to introduce a hard dependency on SSH contact, we only need to ensure that the ansible has a working execution path to the monitor over what ever connection plugin is used. Change-Id: Idb9a178ca2165920804eee12a54419722aa64f51
This commit is contained in:
parent
cdee58123d
commit
f8187bda2c
|
@ -15,13 +15,10 @@
|
|||
|
||||
# look for 1 ceph monitor host that is up
|
||||
- name: Verify Ceph monitors are up
|
||||
local_action: >
|
||||
command ssh
|
||||
-o ConnectTimeout=6
|
||||
-o UserKnownHostsFile=/dev/null
|
||||
-o StrictHostKeyChecking=no
|
||||
{{ item }}
|
||||
exit
|
||||
wait_for_connection:
|
||||
connect_timeout: 3
|
||||
timeout: 10
|
||||
delegate_to: "{{ item }}"
|
||||
with_items: "{{ ceph_mons }}"
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
|
@ -31,7 +28,9 @@
|
|||
set_fact:
|
||||
ceph_mon_host: '{{ item.item }}'
|
||||
when:
|
||||
- item.rc == 0
|
||||
- item is success
|
||||
# Use the first available monitor
|
||||
- ceph_mon_host is not defined
|
||||
with_items: "{{ ceph_mon_upcheck.results }}"
|
||||
|
||||
- name: Fail when no ceph_mon_host is reachable
|
||||
|
|
Loading…
Reference in New Issue