apend hosts

master
alecsandru 9 months ago
parent ef011efd29
commit 09d49841fb
  1. 8
      haproxy.yml

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