fix lint errors

pull/1/head
thiuda 2022-03-24 21:24:13 +01:00
parent 21076b6191
commit 045fad4ba7
1 changed files with 14 additions and 14 deletions

View File

@ -1,33 +1,33 @@
- name: Install prometheus node exporter
become: yes
apt:
become: true
ansible.builtin.apt:
name: prometheus-node-exporter
state: present
- name: Start and enable node exporter
become: yes
systemd:
become: true
ansible.builtin.systemd:
name: prometheus-node-exporter
state: started
enabled: yes
enabled: true
- name: Place reverse proxy conf
become: yes
template:
become: true
ansible.builtin.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
become: yes
apt:
become: true
ansible.builtin.apt:
name: apache2-utils
state: present
- name: Setup htpasswd file
become: yes
file:
become: true
ansible.builtin.file:
path: "/etc/nginx/.htpasswd"
owner: www-data
group: www-data
@ -35,7 +35,7 @@
state: touch
- name: Set Login credentials
become: yes
command:
become: true
ansible.builtin.command:
cmd: "htpasswd -b /etc/nginx/.htpasswd prometheus {{ prometheus_pass }}"
changed_when: False
changed_when: false