fix ansible-lint errors and warnings

This commit is contained in:
Frank Dornheim 2023-03-05 21:41:06 +01:00
parent 40b81c759b
commit a09650c8f2
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ galaxy_info:
description: Set up backup to remote machine using Borg and Borgmatic. description: Set up backup to remote machine using Borg and Borgmatic.
company: "BorgBase.com" company: "BorgBase.com"
license: license (BSD, MIT) license: license (BSD, MIT)
min_ansible_version: 2.0 min_ansible_version: "2.0"
platforms: platforms:
- name: Debian - name: Debian
versions: versions:

View File

@ -1,12 +1,12 @@
--- ---
- name: Create ssh-key for {{ borgbackup_user }} if neeeded - name: Create ssh-key (if neeeded) for {{ borgbackup_user }}
when: when:
- install_backup is not defined or install_backup - install_backup is not defined or install_backup
- backup_id_rsa is not defined or backup_id_rsa | length == 0 - backup_id_rsa is not defined or backup_id_rsa | length == 0
tags: tags:
- install_backup - install_backup
block: block:
- name: Ensire /home/{{ borgbackup_user }}/.ssh directory exist - name: Ensire directory exist
ansible.builtin.file: ansible.builtin.file:
path: "/home/{{ borgbackup_user }}/.ssh/" path: "/home/{{ borgbackup_user }}/.ssh/"
state: directory state: directory
@ -21,7 +21,7 @@
owner: "{{ borgbackup_user }}" owner: "{{ borgbackup_user }}"
group: "{{ borgbackup_group }}" group: "{{ borgbackup_group }}"
- name: Set key (/home/{{ borgbackup_user }}/.ssh) permission - name: Set key permission
ansible.builtin.file: ansible.builtin.file:
path: "/home/{{ borgbackup_user }}/.ssh/id_rsa.pub" path: "/home/{{ borgbackup_user }}/.ssh/id_rsa.pub"
mode: "0644" mode: "0644"