Bring consistency to tags

Some tags were not applied on the highest level and forced duplication.
We apply here our practices to have role_name-(config|install).

Change-Id: I0e77f74561877a94dd222c4c71c7bcf7f095a649
Signed-off-by: Jean-Philippe Evrard <jean-philippe.evrard@rackspace.co.uk>
This commit is contained in:
Jean-Philippe Evrard 2017-01-06 13:49:27 +00:00
parent 3f43f01405
commit 9e6e9abee7
3 changed files with 15 additions and 9 deletions

View File

@ -34,4 +34,4 @@
- { path: "/etc/haproxy" }
- { path: "/etc/haproxy/conf.d" }
tags:
- haproxy-config
- haproxy_server-config

View File

@ -21,8 +21,7 @@
state: present
when: haproxy_bind_on_non_local | bool
tags:
- haproxy-base-config
- haproxy-config
- haproxy-non-local-bind-config
- name: Drop base haproxy config
template:
@ -31,7 +30,6 @@
notify: Restart haproxy
tags:
- haproxy-base-config
- haproxy-config
- name: Drop haproxy logging config
copy:
@ -39,10 +37,11 @@
dest: "/etc/rsyslog.d/99-haproxy-local-logging.conf"
notify: Restart rsyslog
tags:
- haproxy-base-config
- haproxy-config
- haproxy-logging-config
- include: haproxy_service_config.yml
tags:
- haproxy-service-config
- name: Regenerate haproxy configuration
assemble:
@ -50,12 +49,11 @@
dest: "/etc/haproxy/haproxy.cfg"
notify: Restart haproxy
tags:
- haproxy-base-config
- haproxy-config
- haproxy-general-config
- name: Enable haproxy services
service:
name: "haproxy"
enabled: "yes"
tags:
- haproxy-config
- haproxy-enable-service-config

View File

@ -24,10 +24,18 @@
- always
- include: haproxy_pre_install.yml
tags:
- haproxy_server-install
- include: haproxy_install.yml
tags:
- haproxy_server-install
- include: haproxy_ssl.yml
when: haproxy_ssl | bool
tags:
- haproxy_server-config
- include: haproxy_post_install.yml
tags:
- haproxy_server-config