Skip to content

Commit 480c7b1

Browse files
Move os-exporter task to different play
1 parent 4cd5a6d commit 480c7b1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

etc/kayobe/ansible/deploy-os-capacity-exporter.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
---
2-
- hosts: monitoring
3-
gather_facts: false
42

3+
- name: Remove legacy os_exporter.cfg file
4+
hosts: network
5+
gather_facts: false
56
tasks:
67
- name: Ensure legacy os_exporter.cfg config file is deleted
78
ansible.builtin.file:
89
path: /etc/kolla/haproxy/services.d/os_exporter.cfg
910
state: absent
10-
delegate_to: network
1111
become: true
1212

13+
- name: Deploy os-capacity exporter
14+
hosts: monitoring
15+
gather_facts: false
16+
tasks:
1317
- name: Create os-capacity directory
1418
ansible.builtin.file:
1519
path: /opt/kayobe/os-capacity/

0 commit comments

Comments
 (0)