Update 'haproxy.yml'
This commit is contained in:
16
haproxy.yml
16
haproxy.yml
@@ -20,6 +20,14 @@
|
|||||||
package:
|
package:
|
||||||
name: fence-agents
|
name: fence-agents
|
||||||
state: present
|
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
|
- name: Start pcsd
|
||||||
service:
|
service:
|
||||||
name: pscd
|
name: pscd
|
||||||
@@ -34,11 +42,3 @@
|
|||||||
name: haproxy
|
name: haproxy
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
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 %}
|
|
||||||
Reference in New Issue
Block a user