Merge "Gather ceph-mon facts using delegation"
This commit is contained in:
commit
c60342c64a
@ -122,19 +122,6 @@
|
|||||||
- ceph
|
- ceph
|
||||||
- ceph-mon
|
- ceph-mon
|
||||||
|
|
||||||
- name: Gather ceph-mon facts
|
|
||||||
hosts: ceph-mon
|
|
||||||
user: root
|
|
||||||
gather_facts: no
|
|
||||||
tasks:
|
|
||||||
- name: Gather ceph-mon facts
|
|
||||||
action: setup
|
|
||||||
tags:
|
|
||||||
- ceph-mon-facts
|
|
||||||
tags:
|
|
||||||
- ceph
|
|
||||||
- ceph-osd
|
|
||||||
|
|
||||||
- name: Install ceph osds
|
- name: Install ceph osds
|
||||||
hosts: ceph-osd
|
hosts: ceph-osd
|
||||||
max_fail_percentage: 20
|
max_fail_percentage: 20
|
||||||
@ -183,6 +170,16 @@
|
|||||||
--setopt="Ceph-noarch.priority=50"
|
--setopt="Ceph-noarch.priority=50"
|
||||||
when:
|
when:
|
||||||
- ansible_pkg_mgr in ['yum', 'dnf']
|
- ansible_pkg_mgr in ['yum', 'dnf']
|
||||||
|
- name: Gather ceph-mon facts
|
||||||
|
action: setup
|
||||||
|
delegate_to: "{{ item }}"
|
||||||
|
delegate_facts: yes
|
||||||
|
with_items: "{{ groups[mon_group_name] }}"
|
||||||
|
when:
|
||||||
|
- inventory_hostname == ansible_play_hosts[0]
|
||||||
|
tags:
|
||||||
|
- ceph-osd
|
||||||
|
- ceph-mon-facts
|
||||||
roles:
|
roles:
|
||||||
- role: ceph-defaults
|
- role: ceph-defaults
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user