mirror of
https://gitlab.com/s3lph/ansible-collection-prometheus
synced 2024-10-23 11:56:59 +02:00
26 lines
722 B
YAML
26 lines
722 B
YAML
|
---
|
||
|
|
||
|
- name: Render /etc/prometheus/dnssec-exporter/config.yaml
|
||
|
ansible.builtin.template:
|
||
|
src: etc/prometheus/dnssec-exporter/config.yaml.j2
|
||
|
dest: /etc/prometheus/dnssec-exporter/config.yaml
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: 0644
|
||
|
notify: restart prometheus-dnssec-exporter
|
||
|
|
||
|
- name: Render /etc/default/prometheus-dnssec-exporter
|
||
|
ansible.builtin.template:
|
||
|
src: etc/default/prometheus-dnssec-exporter.j2
|
||
|
dest: etc/default/prometheus-dnssec-exporter
|
||
|
owner: root
|
||
|
group: root
|
||
|
mode: 0644
|
||
|
notify: restart prometheus-dnssec-exporter
|
||
|
|
||
|
- name: Start and enable prometheus-dnssec-exporter
|
||
|
ansible.builtin.service:
|
||
|
name: prometheus-dnssec-exporter
|
||
|
state: started
|
||
|
enabled: yes
|