diff --git a/defaults/main.yml b/defaults/main.yml index 4b7ce5d..b64b6cb 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -10,4 +10,4 @@ restic_backups: [] restic_create_cron: false restic_dir_owner: '{{ansible_user}}' -restic_dir_group: '{{ansible_user}}' \ No newline at end of file +restic_dir_group: '{{ansible_user}}' diff --git a/meta/main.yml b/meta/main.yml index 5604e10..940974b 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -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 diff --git a/tasks/configure.yml b/tasks/configure.yml index f2a9cd5..9e6fbce 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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 - diff --git a/tasks/distribution/Linux.yml b/tasks/distribution/Linux.yml index f7f5295..cecc5d2 100644 --- a/tasks/distribution/Linux.yml +++ b/tasks/distribution/Linux.yml @@ -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 \ No newline at end of file + - item.repo in restic_repos diff --git a/tasks/distribution/Windows.yml b/tasks/distribution/Windows.yml index e7bfdb1..26f5d08 100644 --- a/tasks/distribution/Windows.yml +++ b/tasks/distribution/Windows.yml @@ -3,4 +3,5 @@ - name: Message debug: - msg: 'Your {{ ansible_system }} is not yet supported' \ No newline at end of file + msg: 'Your {{ ansible_system }} is not yet supported' + \ No newline at end of file diff --git a/tasks/install.yml b/tasks/install.yml index 9d7f3cd..2672936 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -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 \ No newline at end of file + force: true + \ No newline at end of file diff --git a/vars/defaults.yml b/vars/defaults.yml index 87d0d27..ef4cb1f 100644 --- a/vars/defaults.yml +++ b/vars/defaults.yml @@ -8,4 +8,4 @@ _platform_map: armv6l: arm restic_create_paths: - - '{{ restic_install_path }}/bin' \ No newline at end of file + - '{{ restic_install_path }}/bin'