Ajout authentification et tls sur nodeexporter
This commit is contained in:
parent
c0ca8f5e7c
commit
6ebe41c2b4
3 changed files with 5 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
- name: docker-compose-up
|
- name: docker-compose-up
|
||||||
shell: |
|
ansible.builtin.shell: |
|
||||||
docker compose up -d
|
docker compose up -d
|
||||||
args:
|
args:
|
||||||
chdir: /opt/{{ docker_nodeexporter_service_id }}/
|
chdir: /opt/{{ docker_nodeexporter_service_id }}/
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- name: docker directory
|
- name: Docker directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /opt/{{ docker_nodeexporter_service_id }}/
|
path: /opt/{{ docker_nodeexporter_service_id }}/
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: prepare config
|
- name: Prepare config
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: /opt/{{ docker_nodeexporter_service_id }}/
|
dest: /opt/{{ docker_nodeexporter_service_id }}/
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -22,5 +22,3 @@ services:
|
||||||
org.label-schema.group: "monitoring"
|
org.label-schema.group: "monitoring"
|
||||||
ports:
|
ports:
|
||||||
- {{ docker_nodeexporter_port }}:9100
|
- {{ docker_nodeexporter_port }}:9100
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue