diff --git a/tasks/main.yml b/tasks/main.yml index e2dace0..9bd4ddd 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,7 +25,7 @@ - name: Copie le certificat pour tls ansible.builtin.get_url: url: "{{ docker_traefik_certificate_url }}" - dest: /opt/{{ docker_nodeexporter_service_id }}/cert.pem + dest: "{{ docker_traefik_install_dir }}/cert.pem" username: "{{ lookup('env', 'AAP_RESSOURCES_USER') }}" password: "{{ lookup('env', 'AAP_RESSOURCES_PASSWORD') }}" mode: u=rw,g=r,o=r @@ -37,7 +37,7 @@ - name: Copie la clé pour tls ansible.builtin.get_url: url: "{{ docker_traefik_key_url }}" - dest: /opt/{{ docker_nodeexporter_service_id }}/key.pem + dest: "{{ docker_traefik_install_dir }}/key.pem" username: "{{ lookup('env', 'AAP_RESSOURCES_USER') }}" password: "{{ lookup('env', 'AAP_RESSOURCES_PASSWORD') }}" mode: u=rw,g=r,o=r