customer-deploy/deploy/roles/galion_monitor/tasks/main.yml

23 lines
491 B
YAML

---
- name: Install dependencies
apt:
name: [python3-pip, prometheus-node-exporter]
state: present
- name: Copy Prometheus config
template:
src: prometheus.yml.j2
dest: /etc/prometheus/prometheus.yml
notify: restart prometheus
- name: Deploy Galion Modbus exporter
pip:
name: galion-modbus-exporter
state: present
- name: Configure AWS credentials from vault
template:
src: aws_credentials.j2
dest: /home/galion/.aws/credentials
mode: '0600'