Update 'haproxy.yml'
This commit is contained in:
@@ -24,10 +24,9 @@
|
|||||||
blockinfile:
|
blockinfile:
|
||||||
state: present
|
state: present
|
||||||
dest: /etc/hosts
|
dest: /etc/hosts
|
||||||
content: |
|
block: |
|
||||||
{% for host in groups.all %}
|
'10.10.0.21 k8s-pi-01'
|
||||||
{{ host }} {{ hostvars\[host\]\['hostname'\] }}
|
'10.10.0.22 k8s-pi-02'
|
||||||
{% endfor %}
|
|
||||||
- name: Start pcsd
|
- name: Start pcsd
|
||||||
service:
|
service:
|
||||||
name: pscd
|
name: pscd
|
||||||
|
|||||||
Reference in New Issue
Block a user