From 7129db1a50e58818295d93b6c78a052402914063 Mon Sep 17 00:00:00 2001 From: Ludovic Cartier Date: Wed, 16 Nov 2022 11:47:48 +0100 Subject: [PATCH] add prometheus_server tags --- tasks/server/prometheus.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tasks/server/prometheus.yml b/tasks/server/prometheus.yml index 373e426..82f58a7 100644 --- a/tasks/server/prometheus.yml +++ b/tasks/server/prometheus.yml @@ -3,29 +3,25 @@ assert: that: - "prometheus_server_monitor is defined" - tags: - - prometheus + tags: ['prometheus_server'] - name: 'prometheus | server | create docker network' docker_network: name: 'prometheus' - tags: - - prometheus + tags: ['prometheus_server'] - name: 'prometheus | server | create docker volume data' docker_volume: name: prometheus_data register: register_docker_volume_prometheus__prometheus_data - tags: - - prometheus + tags: ['prometheus_server'] - name: 'prometheus | server | create prometheus directory to /etc' file: path: /etc/prometheus state: directory mode: '0755' - tags: - - prometheus + tags: ['prometheus_server'] - name: 'prometheus | server | copy config prometheus yml' template: @@ -34,8 +30,7 @@ owner: root group: root mode: 0644 - tags: - - prometheus + tags: ['prometheus_server'] notify: - 'prometheus | server | restart container' @@ -64,7 +59,6 @@ restart_policy: 'unless-stopped' pull: '{{ prometheus_docker_pull }}' etc_hosts: '{{ prometheus_nodes_ip }}' - tags: - - prometheus + tags: ['prometheus_server'] notify: - 'prometheus | server | restart container'