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
|
||||
shell: |
|
||||
ansible.builtin.shell: |
|
||||
docker compose up -d
|
||||
args:
|
||||
chdir: /opt/{{ docker_nodeexporter_service_id }}/
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -22,5 +22,3 @@ services:
|
|||
org.label-schema.group: "monitoring"
|
||||
ports:
|
||||
- {{ docker_nodeexporter_port }}:9100
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue