ignore fqcn-builtins lint errors for builtin actions

main
thiuda 2022-04-22 15:13:37 +02:00
parent 045fad4ba7
commit b4cdc50ec7
2 changed files with 9 additions and 6 deletions

3
.ansible-lint Normal file
View File

@ -0,0 +1,3 @@
---
skip_list:
- fqcn-builtins

View File

@ -1,19 +1,19 @@
- name: Install prometheus node exporter
become: true
ansible.builtin.apt:
apt:
name: prometheus-node-exporter
state: present
- name: Start and enable node exporter
become: true
ansible.builtin.systemd:
systemd:
name: prometheus-node-exporter
state: started
enabled: true
- name: Place reverse proxy conf
become: true
ansible.builtin.template:
template:
src: templates/nginx.conf.j2
dest: /etc/nginx/conf.d/{{ node_exporter_domain }}.conf
mode: 0600
@ -21,13 +21,13 @@
- name: Install apache2-utils
become: true
ansible.builtin.apt:
apt:
name: apache2-utils
state: present
- name: Setup htpasswd file
become: true
ansible.builtin.file:
file:
path: "/etc/nginx/.htpasswd"
owner: www-data
group: www-data
@ -36,6 +36,6 @@
- name: Set Login credentials
become: true
ansible.builtin.command:
command:
cmd: "htpasswd -b /etc/nginx/.htpasswd prometheus {{ prometheus_pass }}"
changed_when: false