Files
cmoa_agent_installer_ansible/roles/jspd/tasks/podman.yaml

21 lines
677 B
YAML

---
- name: host agent install setting [1] - crio
lineinfile:
path: /root/host-agent/podman-host/metric-agent.yml
regexp: 'targets'
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]]['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']
- name: host agent install - crio
shell: sh /root/host-agent/podman-host/setup.sh
when:
- inventory_hostname in groups['crio']