diff --git a/tasks/main.yml b/tasks/main.yml index bab3c8f..6e94948 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,6 +16,7 @@ template: src: templates/nginx.conf.j2 dest: /etc/nginx/conf.d/{{ node_exporter_domain }}.conf + mode: 0600 notify: Check and Reload nginx - name: Install apache2-utils @@ -35,5 +36,6 @@ - name: Set Login credentials become: yes - shell: + command: cmd: "htpasswd -b /etc/nginx/.htpasswd prometheus {{ prometheus_pass }}" + changed_when: False