Ajout authentification et tls sur nodeexporter

This commit is contained in:
Navas 2024-12-25 12:47:27 +01:00
parent c0ca8f5e7c
commit 6ebe41c2b4
3 changed files with 5 additions and 7 deletions

View file

@ -1,5 +1,5 @@
- name: docker-compose-up
shell: |
ansible.builtin.shell: |
docker compose up -d
args:
chdir: /opt/{{ docker_nodeexporter_service_id }}/

View file

@ -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:

View file

@ -22,5 +22,3 @@ services:
org.label-schema.group: "monitoring"
ports:
- {{ docker_nodeexporter_port }}:9100