ensure stunnel is running and enabled

This commit is contained in:
nd 2020-10-19 21:32:03 +02:00
parent fae35db007
commit 3514624106
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9

View file

@ -75,6 +75,11 @@
src: stunnel-client.conf.j2 src: stunnel-client.conf.j2
dest: /etc/stunnel/prometheus-agent.conf dest: /etc/stunnel/prometheus-agent.conf
notify: restart stunnel notify: restart stunnel
- name: ensure stunnel is running
service:
name: stunnel4
state: started
enabled: yes
- name: copy agent certs to scrapers - name: copy agent certs to scrapers
loop: "{{ prometheus_agent.scrapers.keys()|list }}" loop: "{{ prometheus_agent.scrapers.keys()|list }}"
delegate_to: "{{ item }}" delegate_to: "{{ item }}"