From 6ebe41c2b40ff3149769bd99d8857442a51b7f86 Mon Sep 17 00:00:00 2001 From: Olivier Navas Date: Wed, 25 Dec 2024 12:47:27 +0100 Subject: [PATCH] Ajout authentification et tls sur nodeexporter --- handlers/main.yml | 2 +- tasks/main.yml | 8 ++++---- templates/docker-compose.yml | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 1cede2a..f103ca5 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,5 +1,5 @@ - name: docker-compose-up - shell: | + ansible.builtin.shell: | docker compose up -d args: chdir: /opt/{{ docker_nodeexporter_service_id }}/ diff --git a/tasks/main.yml b/tasks/main.yml index 62cf177..73b721f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,10 +1,10 @@ -- name: docker directory - file: +- name: Docker directory + ansible.builtin.file: path: /opt/{{ docker_nodeexporter_service_id }}/ state: directory -- name: prepare config - template: +- name: Prepare config + ansible.builtin.template: src: "{{ item }}" dest: /opt/{{ docker_nodeexporter_service_id }}/ with_items: diff --git a/templates/docker-compose.yml b/templates/docker-compose.yml index b45ed2b..9a6b5f0 100644 --- a/templates/docker-compose.yml +++ b/templates/docker-compose.yml @@ -22,5 +22,3 @@ services: org.label-schema.group: "monitoring" ports: - {{ docker_nodeexporter_port }}:9100 - -