monitor_client.yml 750 Bytes
Newer Older
tec's avatar
tec committed
1 2 3 4 5
---
- hosts: uccservers
  become: true
  become_user: root
  remote_user: root
6 7 8 9 10
  tasks:
      - name: Have prometheus-node-exporter
        apt:
            name: prometheus-node-exporter
            state: latest
tec's avatar
tec committed
11 12 13 14 15 16 17 18 19 20
        when: ansible_distribution == 'Debian' and ansible_distribution_major_version == '10'
      - name: Occlude prometheus-node-exporter package on Debian!=10
        apt:
            name: prometheus-node-exporter
            state: absent
            purge: true
        when: ansible_distribution == 'Debian' and ansible_distribution_major_version != '10'
  roles:
      - {
            role: cloudalchemy.node-exporter,
tec's avatar
tec committed
21
            when: ansible_distribution == 'Debian' and ansible_distribution_major_version != '10',
tec's avatar
tec committed
22
        }