Update 'haproxy.yml'

master
alecsandru 9 months ago
parent 09d49841fb
commit e9a74aadee
  1. 16
      haproxy.yml

@ -20,6 +20,14 @@
package:
name: fence-agents
state: present
- name: append hosts to etc_hosts
blockinfile:
state: present
dest: /etc/hosts
content: |
{% for host in groups.all %}
{{ host }} {{ hostvars\[host\]\['hostname'\] }}
{% endfor %}
- name: Start pcsd
service:
name: pscd
@ -34,11 +42,3 @@
name: haproxy
enabled: true
state: started
- name: append hosts to etc_hosts
blockinfile:
state: present
dest: /etc/hosts
content: |
{% for host in groups.all %}
{{ host }} {{ hostvars\[host\]\['hostname'\] }}
{% endfor %}
Loading…
Cancel
Save