Merge "Remove redundant common play and add haproxy hosts"

This commit is contained in:
Jenkins 2016-10-03 13:34:42 +00:00 committed by Gerrit Code Review
commit b482611a2d
2 changed files with 15 additions and 5 deletions

View File

@ -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

View File

@ -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,