review handler to prometheus container
This commit is contained in:
parent
8aa8653e21
commit
c1a667786c
@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: 'prometheus | server | restart container'
|
- name: 'prometheus | server | restart container'
|
||||||
systemd:
|
docker_container:
|
||||||
name: openvpn@{{ ansible_hostname }}.service
|
name: prometheus
|
||||||
state: started
|
restart: yes
|
||||||
enabled: yes
|
when:
|
||||||
tags: ['prometheus']
|
- 'not register_docker_container_grafana.changed'
|
||||||
|
|
||||||
- name: 'prometheus | node exporter | restart service'
|
- name: 'prometheus | node exporter | restart service'
|
||||||
systemd:
|
systemd:
|
||||||
|
@ -11,13 +11,11 @@
|
|||||||
name: 'prometheus'
|
name: 'prometheus'
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
when: prometheus_server_enable == "true"
|
|
||||||
|
|
||||||
- name: 'prometheus | server | create docker volume data'
|
- name: 'prometheus | server | create docker volume data'
|
||||||
docker_volume:
|
docker_volume:
|
||||||
name: prometheus_data
|
name: prometheus_data
|
||||||
register: register_docker_volume_prometheus__prometheus_data
|
register: register_docker_volume_prometheus__prometheus_data
|
||||||
when: prometheus_server_enable == "true"
|
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
@ -26,7 +24,6 @@
|
|||||||
path: /etc/prometheus
|
path: /etc/prometheus
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: prometheus_server_enable == "true"
|
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
|
||||||
@ -37,11 +34,10 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when:
|
|
||||||
- prometheus_server_enable == "true"
|
|
||||||
- prometheus_server_monitor is defined
|
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
notify:
|
||||||
|
- 'prometheus | server | restart container'
|
||||||
|
|
||||||
- name: 'prometheus | server | deploy container'
|
- name: 'prometheus | server | deploy container'
|
||||||
docker_container:
|
docker_container:
|
||||||
@ -66,7 +62,7 @@
|
|||||||
tag: docker_prometheus
|
tag: docker_prometheus
|
||||||
restart_policy: 'unless-stopped'
|
restart_policy: 'unless-stopped'
|
||||||
pull: '{{ awh_services_docker_pull|default("no") }}'
|
pull: '{{ awh_services_docker_pull|default("no") }}'
|
||||||
when: prometheus_server_enable == "true"
|
|
||||||
tags:
|
tags:
|
||||||
- prometheus
|
- prometheus
|
||||||
|
notify:
|
||||||
|
- 'prometheus | server | restart container'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user