Fix issues reported by ansible-lint (var prefixes)

This commit is contained in:
Tobias Reisinger 2025-11-23 19:47:09 +01:00
parent 0f9e4544b0
commit 39fd6ef5a2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
24 changed files with 86 additions and 86 deletions

View file

@ -1,23 +1,23 @@
- name: Check if autorestic is installed
ansible.builtin.stat:
path: /usr/local/bin/autorestic
register: autorestic_status
register: software_autorestic_status
- name: Install autorestic
ansible.builtin.shell:
executable: /usr/bin/bash
cmd: set -o pipefail && wget -qO - https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh | bash
when: not autorestic_status.stat.exists
when: not software_autorestic_status.stat.exists
changed_when: true
become: true
- name: Check if restic is installed
ansible.builtin.stat:
path: /usr/local/bin/restic
register: restic_status
register: software_restic_status
- name: Install restic
ansible.builtin.command: autorestic install
when: not restic_status.stat.exists
when: not software_restic_status.stat.exists
changed_when: true
become: true