From fc46ea4cec58d163357323747672ec6b31155a0e Mon Sep 17 00:00:00 2001 From: Jake Hutchinson Date: Thu, 29 Feb 2024 15:19:30 +0000 Subject: [PATCH] Fix os-capacity playbook crash on delegate_to --- etc/kayobe/ansible/deploy-os-capacity-exporter.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/kayobe/ansible/deploy-os-capacity-exporter.yml b/etc/kayobe/ansible/deploy-os-capacity-exporter.yml index e5cde5676..8cff6a89e 100644 --- a/etc/kayobe/ansible/deploy-os-capacity-exporter.yml +++ b/etc/kayobe/ansible/deploy-os-capacity-exporter.yml @@ -1,15 +1,18 @@ --- -- hosts: monitoring +- name: Remove legacy os_exporter.cfg file + hosts: network gather_facts: false - tasks: - name: Ensure legacy os_exporter.cfg config file is deleted ansible.builtin.file: path: /etc/kolla/haproxy/services.d/os_exporter.cfg state: absent - delegate_to: network become: true +- name: Deploy os-capacity exporter + hosts: monitoring + gather_facts: false + tasks: - name: Create os-capacity directory ansible.builtin.file: path: /opt/kayobe/os-capacity/