From 60c6fae229fe497514500f0ce64f5d8604dc6072 Mon Sep 17 00:00:00 2001 From: alecsandru Date: Fri, 3 May 2024 17:13:24 +0000 Subject: [PATCH] Update 'haproxy.yml' --- haproxy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/haproxy.yml b/haproxy.yml index ab045ad..9fa7ef0 100644 --- a/haproxy.yml +++ b/haproxy.yml @@ -24,10 +24,9 @@ blockinfile: state: present dest: /etc/hosts - content: | - {% for host in groups.all %} - {{ host }} {{ hostvars\[host\]\['hostname'\] }} - {% endfor %} + block: | + '10.10.0.21 k8s-pi-01' + '10.10.0.22 k8s-pi-02' - name: Start pcsd service: name: pscd