Execute common roles once on all nodes

The common roles don't need to be executed again on each group plays
(like mons, osds, etc..).
We only need to execute them during the first play. That wat, we will
apply the changes on all nodes in parallel instead of doing it once per
group.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 68a3dac7cd)
pull/4616/head
Dimitri Savineau 2019-08-02 16:20:08 -04:00 committed by Dimitri Savineau
parent 6707f3b181
commit 0b49538621
3 changed files with 2 additions and 58 deletions

View File

@ -51,8 +51,6 @@
- import_role:
name: ceph-facts
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-prometheus
- import_role:

View File

@ -83,10 +83,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -130,10 +126,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -172,10 +164,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -214,10 +202,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -256,10 +240,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -298,10 +278,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -340,10 +316,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -382,12 +354,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
when: inventory_hostname == groups.get('clients', ['']) | first
- import_role:
name: ceph-container-common
when: inventory_hostname == groups.get('clients', ['']) | first
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -428,10 +394,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-container-engine
- import_role:
name: ceph-container-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']

View File

@ -52,6 +52,8 @@
name: ceph-validate
- import_role:
name: ceph-infra
- import_role:
name: ceph-common
- hosts: mons
gather_facts: false
@ -76,8 +78,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -119,8 +119,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -159,8 +157,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -199,8 +195,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -239,8 +233,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -279,8 +271,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -319,8 +309,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -359,8 +347,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']
@ -401,8 +387,6 @@
- import_role:
name: ceph-handler
tags: ['ceph_update_config']
- import_role:
name: ceph-common
- import_role:
name: ceph-config
tags: ['ceph_update_config']