Merge "Merge haproxy plays"
This commit is contained in:
commit
af29f36ff8
@ -29,22 +29,6 @@
|
|||||||
static: no
|
static: no
|
||||||
when:
|
when:
|
||||||
- hostvars['localhost']['resolvconf_enabled'] | bool
|
- hostvars['localhost']['resolvconf_enabled'] | bool
|
||||||
roles:
|
|
||||||
- role: "keepalived"
|
|
||||||
when: haproxy_use_keepalived | bool
|
|
||||||
tags:
|
|
||||||
- keepalived
|
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
|
||||||
tags:
|
|
||||||
- haproxy-config
|
|
||||||
- haproxy
|
|
||||||
|
|
||||||
- name: Install haproxy
|
|
||||||
hosts: haproxy
|
|
||||||
serial: "50%"
|
|
||||||
gather_facts: "{{ osa_gather_facts | default(True) }}"
|
|
||||||
user: root
|
|
||||||
pre_tasks:
|
|
||||||
- name: Remove legacy haproxy configuration files
|
- name: Remove legacy haproxy configuration files
|
||||||
file:
|
file:
|
||||||
dest: "/etc/haproxy/conf.d/{{ item.name }}"
|
dest: "/etc/haproxy/conf.d/{{ item.name }}"
|
||||||
@ -65,6 +49,10 @@
|
|||||||
tags:
|
tags:
|
||||||
- haproxy-config # this tag is present because the task is ONLY a config task
|
- haproxy-config # this tag is present because the task is ONLY a config task
|
||||||
roles:
|
roles:
|
||||||
|
- role: "keepalived"
|
||||||
|
when: haproxy_use_keepalived | bool
|
||||||
|
tags:
|
||||||
|
- keepalived
|
||||||
- role: "haproxy_server"
|
- role: "haproxy_server"
|
||||||
haproxy_service_configs: "{{ haproxy_default_services + haproxy_extra_services|default([]) }}"
|
haproxy_service_configs: "{{ haproxy_default_services + haproxy_extra_services|default([]) }}"
|
||||||
- role: "rsyslog_client"
|
- role: "rsyslog_client"
|
||||||
@ -75,4 +63,5 @@
|
|||||||
- rsyslog
|
- rsyslog
|
||||||
environment: "{{ deployment_environment_variables | default({}) }}"
|
environment: "{{ deployment_environment_variables | default({}) }}"
|
||||||
tags:
|
tags:
|
||||||
|
- haproxy-config
|
||||||
- haproxy
|
- haproxy
|
||||||
|
Loading…
Reference in New Issue
Block a user