mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
fixed some linting problems
This commit is contained in:
parent
8780e47d80
commit
5ba0cd16f4
7 changed files with 11 additions and 10 deletions
|
@ -10,4 +10,4 @@ restic_backups: []
|
|||
restic_create_cron: false
|
||||
|
||||
restic_dir_owner: '{{ansible_user}}'
|
||||
restic_dir_group: '{{ansible_user}}'
|
||||
restic_dir_group: '{{ansible_user}}'
|
||||
|
|
|
@ -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,9 +8,9 @@
|
|||
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
|
||||
- item.src is defined or item.stdin is defined and item.stdin == true and item.stdin_cmd is defined
|
||||
- item.repo in restic_repos
|
||||
- item.repo in restic_repos
|
||||
|
|
|
@ -3,4 +3,5 @@
|
|||
|
||||
- name: Message
|
||||
debug:
|
||||
msg: 'Your {{ ansible_system }} is not yet supported'
|
||||
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
|
||||
|
|
@ -8,4 +8,4 @@ _platform_map:
|
|||
armv6l: arm
|
||||
|
||||
restic_create_paths:
|
||||
- '{{ restic_install_path }}/bin'
|
||||
- '{{ restic_install_path }}/bin'
|
||||
|
|
Loading…
Reference in a new issue