Skip to content

Commit

Permalink
Add ansible-lint and fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyMistborn committed Sep 20, 2021
1 parent 78a8946 commit 3467bb6
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
exclude_paths:
- galaxy_roles/
- galaxy_collections/

skip_list:
- no-relative-paths
- literal-compare
4 changes: 2 additions & 2 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -23,7 +23,7 @@ galaxy_info:
- name: Debian
versions:
- all
categories:
galaxy-tags:
- system
- web
dependencies: []
1 change: 1 addition & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
dest: "{{ autorestic_generator_output_path }}/.autorestic.yml"
owner: "{{ autorestic_generator_generator_uid }}"
group: "{{ autorestic_generator_generator_gid }}"
mode: '0644'
8 changes: 4 additions & 4 deletions tasks/install_autorestic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tasks/install_restic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3467bb6

Please sign in to comment.