mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-12 04:40:19 +01:00
fixed some linting problems
This commit is contained in:
parent
8780e47d80
commit
5ba0cd16f4
7 changed files with 11 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
galaxy_info:
|
||||
role_name: restic
|
||||
author: Matthias Leutenegger
|
||||
description: Role to deploy restic (https://restic.readthedocs.io) and setup backups.
|
||||
description: Role to deploy restic and setup backups.
|
||||
# company:
|
||||
license: MIT
|
||||
min_ansible_version: 2.8
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
environment:
|
||||
RESTIC_REPOSITORY: '{{ item.value.location }}'
|
||||
RESTIC_PASSWORD: '{{ item.value.password }}'
|
||||
no_log: True
|
||||
no_log: true
|
||||
register: restic_init
|
||||
changed_when: "'created restic repository' in restic_init.stdout"
|
||||
failed_when:
|
||||
|
@ -14,4 +14,3 @@
|
|||
when:
|
||||
- item.value.init is defined
|
||||
- item.value.init == true
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
mode: '0700'
|
||||
owner: '{{ restic_dir_owner }}'
|
||||
group: '{{ restic_dir_group }}'
|
||||
no_log: True
|
||||
no_log: true
|
||||
with_items: '{{ restic_backups }}'
|
||||
when:
|
||||
- item.name is defined
|
||||
|
|
|
@ -4,3 +4,4 @@
|
|||
- name: Message
|
||||
debug:
|
||||
msg: 'Your {{ ansible_system }} is not yet supported'
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
get_url:
|
||||
url: '{{ restic_url }}'
|
||||
dest: '{{ restic_download_path }}/restic.bz2'
|
||||
force: True
|
||||
force: true
|
||||
register: get_url_restic
|
||||
|
||||
# TODO: This needs to become independent of the shell module to actually work
|
||||
|
@ -31,4 +31,5 @@
|
|||
src: '{{ restic_download_path }}/bin/restic-{{ restic_version }}'
|
||||
path: '{{ restic_install_path }}/restic'
|
||||
state: link
|
||||
force: True
|
||||
force: true
|
||||
|
Loading…
Reference in a new issue