Merge "Remove redundant common play and add haproxy hosts"
This commit is contained in:
commit
b482611a2d
@ -1,8 +1,10 @@
|
||||
---
|
||||
- include: "{{ action }}.yml"
|
||||
tags: common
|
||||
when: not common_run
|
||||
|
||||
- name: Registering common role has run
|
||||
set_fact:
|
||||
common_run: True
|
||||
tags: common
|
||||
when: not common_run
|
||||
|
@ -1,10 +1,17 @@
|
||||
---
|
||||
- hosts:
|
||||
# NOTE(awiddersheim): Gather facts for all hosts as a
|
||||
# first step since several plays below require them when
|
||||
# building their configurations. The below 'gather_facts'
|
||||
# set to 'false' is a bit confusing but this is to avoid
|
||||
# Ansible gathering facts twice.
|
||||
- name: Gather facts for all hosts
|
||||
hosts:
|
||||
- all
|
||||
serial: '{{ serial|default("0") }}'
|
||||
roles:
|
||||
- { role: common,
|
||||
tags: common }
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- setup:
|
||||
tags: always
|
||||
|
||||
- hosts:
|
||||
- ceph-mon
|
||||
@ -45,7 +52,8 @@
|
||||
tags: telegraf,
|
||||
when: enable_telegraf | bool }
|
||||
|
||||
- hosts: haproxy
|
||||
- hosts:
|
||||
- haproxy
|
||||
roles:
|
||||
- { role: haproxy,
|
||||
tags: haproxy,
|
||||
|
Loading…
Reference in New Issue
Block a user