gather_facts 제거 및 제거에 따른 script 수정

This commit is contained in:
변정훈
2023-07-12 14:09:01 +09:00
parent 7d6744837b
commit f69ed091a5
6 changed files with 19 additions and 19 deletions

View File

@@ -3,13 +3,13 @@
lineinfile:
path: /root/host-agent/podman-host/metric-agent.yml
regexp: 'targets'
line: " - targets: ['{{ ansible_default_ipv4.address }}:9100']"
line: " - targets: ['{{ ip }}:9100']"
when:
- inventory_hostname in groups['crio']
- name: host agent install setting [2] - crio
shell: |
sed -i "s/10.10.34.142/{{ hostvars[groups['cmoa-master'][0]]['ansible_default_ipv4']['address'] }}/" /root/host-agent/podman-host/setup.sh
sed -i "s/10.10.34.142/{{ hostvars[groups['cmoa-master'][0]]['ip'] }}/" /root/host-agent/podman-host/setup.sh
sed -i "s/rel3.4.6/rel{{ VERSION }}/" /root/host-agent/podman-host/setup.sh
when:
- inventory_hostname in groups['crio']