From b4cdc50ec7e7e37bc0c2825c76fa82b1260e216e Mon Sep 17 00:00:00 2001 From: thiuda Date: Fri, 22 Apr 2022 15:13:37 +0200 Subject: [PATCH] ignore fqcn-builtins lint errors for builtin actions --- .ansible-lint | 3 +++ tasks/main.yml | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..2aea330 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,3 @@ +--- +skip_list: + - fqcn-builtins diff --git a/tasks/main.yml b/tasks/main.yml index 4c8f387..c5e3115 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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