@ -34,3 +34,11 @@
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 %}