fixed some linting problems

This commit is contained in:
Matthias Leutenegger 2019-08-14 16:59:32 +02:00
parent 8780e47d80
commit 5ba0cd16f4
7 changed files with 11 additions and 10 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -4,3 +4,4 @@
- name: Message
debug:
msg: 'Your {{ ansible_system }} is not yet supported'

View file

@ -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