1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_restic_archiver.git synced 2024-08-16 10:09:49 +02:00

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: galaxy_info:
role_name: restic role_name: restic
author: Matthias Leutenegger author: Matthias Leutenegger
description: Role to deploy restic (https://restic.readthedocs.io) and setup backups. description: Role to deploy restic and setup backups.
# company: # company:
license: MIT license: MIT
min_ansible_version: 2.8 min_ansible_version: 2.8

View file

@ -4,7 +4,7 @@
environment: environment:
RESTIC_REPOSITORY: '{{ item.value.location }}' RESTIC_REPOSITORY: '{{ item.value.location }}'
RESTIC_PASSWORD: '{{ item.value.password }}' RESTIC_PASSWORD: '{{ item.value.password }}'
no_log: True no_log: true
register: restic_init register: restic_init
changed_when: "'created restic repository' in restic_init.stdout" changed_when: "'created restic repository' in restic_init.stdout"
failed_when: failed_when:
@ -14,4 +14,3 @@
when: when:
- item.value.init is defined - item.value.init is defined
- item.value.init == true - item.value.init == true

View file

@ -8,7 +8,7 @@
mode: '0700' mode: '0700'
owner: '{{ restic_dir_owner }}' owner: '{{ restic_dir_owner }}'
group: '{{ restic_dir_group }}' group: '{{ restic_dir_group }}'
no_log: True no_log: true
with_items: '{{ restic_backups }}' with_items: '{{ restic_backups }}'
when: when:
- item.name is defined - item.name is defined

View file

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

View file

@ -8,7 +8,7 @@
get_url: get_url:
url: '{{ restic_url }}' url: '{{ restic_url }}'
dest: '{{ restic_download_path }}/restic.bz2' dest: '{{ restic_download_path }}/restic.bz2'
force: True force: true
register: get_url_restic register: get_url_restic
# TODO: This needs to become independent of the shell module to actually work # 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 }}' src: '{{ restic_download_path }}/bin/restic-{{ restic_version }}'
path: '{{ restic_install_path }}/restic' path: '{{ restic_install_path }}/restic'
state: link state: link
force: True force: true