From fe8abc7e0a18459d633bba0e99ebdf9a50eca20b Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Sun, 30 Oct 2022 15:50:36 +0000 Subject: [PATCH] influxdb: ansible-lint fixes --- roles/influxdb/handlers/main.yml | 2 +- roles/influxdb/tasks/main.yml | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/roles/influxdb/handlers/main.yml b/roles/influxdb/handlers/main.yml index 547bd40..c0fbed3 100644 --- a/roles/influxdb/handlers/main.yml +++ b/roles/influxdb/handlers/main.yml @@ -1,5 +1,5 @@ --- -- name: restart influxdb +- name: Restart influxdb ansible.builtin.service: name: influxdb state: restarted diff --git a/roles/influxdb/tasks/main.yml b/roles/influxdb/tasks/main.yml index cadbd21..f7f5e8f 100644 --- a/roles/influxdb/tasks/main.yml +++ b/roles/influxdb/tasks/main.yml @@ -1,5 +1,5 @@ --- -- name: enable repository +- name: Enable repository ansible.builtin.yum_repository: name: influxdb baseurl: https://repos.influxdata.com/rhel/$releasever/$basearch/stable @@ -8,7 +8,7 @@ gpgkey: https://repos.influxdata.com/influxdb.key enabled: true -- name: install packages +- name: Install packages ansible.builtin.package: name: "{{ item }}" state: present @@ -17,7 +17,7 @@ - influxdb2-cli # https://github.com/influxdata/influxdb/issues/22435 -- name: fix logrotate errors +- name: Fix logrotate errors ansible.builtin.file: path: /etc/logrotate.d/influxdb state: file @@ -25,7 +25,7 @@ owner: root group: "{{ ansible_wheel }}" -- name: create data directory +- name: Create data directory ansible.builtin.file: path: /export/influxdb state: directory @@ -33,7 +33,7 @@ owner: influxdb group: influxdb -- name: link data directory +- name: Link data directory ansible.builtin.file: path: /srv/influxdb src: /export/influxdb @@ -42,28 +42,28 @@ group: "{{ ansible_wheel }}" follow: false -- name: create config.toml +- name: Create config.toml ansible.builtin.copy: dest: /etc/influxdb/config.toml src: config.toml mode: 0644 owner: root group: "{{ ansible_wheel }}" - notify: restart influxdb + notify: Restart influxdb -- name: enable service +- name: Enable service ansible.builtin.service: name: influxdb state: started enabled: true -- name: allow nginx to connect influxdb +- name: Allow nginx to connect influxdb seboolean: name: httpd_can_network_connect state: true persistent: true -- name: create nginx config +- name: Create nginx config copy: dest: "/etc/nginx/conf.d/{{ inventory_hostname }}/influxdb.conf" content: | @@ -73,4 +73,4 @@ mode: 0644 owner: root group: "{{ ansible_wheel }}" - notify: restart nginx + notify: Restart nginx