diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..d3446f7 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,8 @@ +--- +exclude_paths: + - galaxy_roles/ + - galaxy_collections/ + +skip_list: + - no-relative-paths + - literal-compare diff --git a/meta/main.yml b/meta/main.yml index fa4bb30..8fb3957 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,7 +1,7 @@ --- galaxy_info: role_name: autorestic - author: FuzzyMistborn + author: fuzzymistborn description: Installs restic/autorestic and creates backup configuration file issue_tracker_url: https://github.com/FuzzyMistborn/ansible-role-autorestic/issues license: GPLv3 @@ -23,7 +23,7 @@ galaxy_info: - name: Debian versions: - all - categories: + galaxy-tags: - system - web dependencies: [] diff --git a/tasks/configure.yml b/tasks/configure.yml index 548fa7c..da7f99a 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -11,3 +11,4 @@ dest: "{{ autorestic_generator_output_path }}/.autorestic.yml" owner: "{{ autorestic_generator_generator_uid }}" group: "{{ autorestic_generator_generator_gid }}" + mode: '0644' diff --git a/tasks/install_autorestic.yml b/tasks/install_autorestic.yml index 12cb27f..a1d0b4d 100644 --- a/tasks/install_autorestic.yml +++ b/tasks/install_autorestic.yml @@ -33,16 +33,16 @@ - name: download autorestic release get_url: - url: "{{autorestic_gh_url}}/{{autorestic_ver}}/autorestic_{{autorestic_ver|regex_replace('v')}}_{{autorestic_distro}}.bz2" + url: "{{ autorestic_gh_url }}/{{ autorestic_ver }}/autorestic_{{ autorestic_ver|regex_replace('v') }}_{{ autorestic_distro }}.bz2" dest: /tmp force: yes - owner: "{{main_username}}" - group: "{{main_username}}" + owner: "{{ main_username }}" + group: "{{ main_username }}" mode: +x when: force_install == True - name: set autorestic filename - set_fact: file_name="autorestic_{{ autorestic_ver | regex_replace('v')}}_{{autorestic_distro}}.bz2" + set_fact: file_name="autorestic_{{ autorestic_ver | regex_replace('v') }}_{{ autorestic_distro }}.bz2" when: force_install == True - name: Unzip autorestic release diff --git a/tasks/install_restic.yml b/tasks/install_restic.yml index df25713..e316aa6 100644 --- a/tasks/install_restic.yml +++ b/tasks/install_restic.yml @@ -33,16 +33,16 @@ - name: download restic release get_url: - url: "{{restic_gh_url}}/{{restic_ver}}/restic_{{restic_ver | regex_replace('v')}}_{{restic_distro}}.bz2" + url: "{{ restic_gh_url }}/{{ restic_ver }}/restic_{{ restic_ver | regex_replace('v') }}_{{ restic_distro }}.bz2" dest: /tmp force: yes - owner: "{{main_username}}" - group: "{{main_username}}" + owner: "{{ main_username }}" + group: "{{ main_username }}" mode: +x when: force_install == True - name: set restic filename - set_fact: file_name="restic_{{ restic_ver | regex_replace('v')}}_{{restic_distro}}.bz2" + set_fact: file_name="restic_{{ restic_ver | regex_replace('v') }}_{{ restic_distro }}.bz2" when: force_install == True - name: Unzip restic release