web_logs: ansible-lint fixes

This commit is contained in:
Timo Makinen 2022-10-30 16:58:14 +00:00
parent 73ad086261
commit c23181edc7

View file

@ -1,10 +1,10 @@
--- ---
- name: create logsync group - name: Create logsync group
ansible.builtin.group: ansible.builtin.group:
name: logsync name: logsync
system: true system: true
- name: create logsync user - name: Create logsync user
ansible.builtin.user: ansible.builtin.user:
name: logsync name: logsync
comment: Service logsync comment: Service logsync
@ -14,7 +14,7 @@
shell: /sbin/nologin shell: /sbin/nologin
system: true system: true
- name: create logsync ssh key directory - name: Create logsync ssh key directory
ansible.builtin.file: ansible.builtin.file:
path: /etc/ssh/logsync path: /etc/ssh/logsync
state: directory state: directory
@ -22,7 +22,7 @@
owner: root owner: root
group: logsync group: logsync
- name: create logsync ssh keys - name: Create logsync ssh keys
ansible.builtin.command: ansible.builtin.command:
argv: argv:
- ssh-keygen - ssh-keygen
@ -36,7 +36,7 @@
- /etc/ssh/logsync/id_ed25519 - /etc/ssh/logsync/id_ed25519
creates: /etc/ssh/logsync/id_ed25519 creates: /etc/ssh/logsync/id_ed25519
- name: fix logsync ssh key permissions - name: Fix logsync ssh key permissions
ansible.builtin.file: ansible.builtin.file:
path: "{{ item }}" path: "{{ item }}"
owner: root owner: root
@ -46,7 +46,7 @@
- /etc/ssh/logsync/id_ed25519 - /etc/ssh/logsync/id_ed25519
- /etc/ssh/logsync/id_ed25519.pub - /etc/ssh/logsync/id_ed25519.pub
- name: import rclone role - name: Import rclone role
ansible.builtin.import_role: ansible.builtin.import_role:
name: rclone name: rclone
vars: vars:
@ -56,7 +56,7 @@
destination: /var/cache/sync-http-logs destination: /var/cache/sync-http-logs
private_key: /etc/ssh/logsync/id_ed25519 private_key: /etc/ssh/logsync/id_ed25519
- name: create cache directory - name: Create cache directory
ansible.builtin.file: ansible.builtin.file:
path: /var/cache/sync-http-logs path: /var/cache/sync-http-logs
state: directory state: directory
@ -64,7 +64,7 @@
owner: logsync owner: logsync
group: logsync group: logsync
- name: create log directory - name: Create log directory
ansible.builtin.file: ansible.builtin.file:
path: /export/web-log path: /export/web-log
state: directory state: directory
@ -72,7 +72,7 @@
owner: root owner: root
group: "{{ ansible_wheel }}" group: "{{ ansible_wheel }}"
- name: link data directory - name: Link data directory
ansible.builtin.file: ansible.builtin.file:
dest: /srv/web-log dest: /srv/web-log
src: /export/web-log src: /export/web-log