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