Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FuzzyMistborn committed Jun 10, 2024
1 parent 4e413ca commit 6107754
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,13 @@ rules:
new-line-at-end-of-file: disable
truthy:
allowed-values: ['true', 'false', 'yes', 'no']
octal-values:
forbid-implicit-octal: true
forbid-explicit-octal: true
comments:
min-spaces-from-content: 1

ignore: |
.woodpecker/.lint.yaml
.woodpecker/.push-to-galaxy.yaml
FUNDING.yml
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ autorestic_install_path: "{{ autorestic_install_directory }}/autorestic"
autorestic_config_user: root
autorestic_config_yaml: CHANGEME # autorestic configuration in yaml
autorestic_config_path: "{{ autorestic_user_directory }}/.autorestic.yml"
autorestic_config_mode: 0600
autorestic_config_mode: "0600"
autorestic_config_owner: "{{ autorestic_config_user }}"
autorestic_config_group: "{{ autorestic_config_user }}"
autorestic_run_check: true
autorestic_run_check: true
2 changes: 1 addition & 1 deletion tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@

- name: Run autorestic check
ansible.builtin.command: "{{ autorestic_install_path }} check -c {{ autorestic_config_path }}"
when: autorestic_run_check == true and autorestic_config_yaml != "CHANGEME" and config_update.changed == true
when: autorestic_run_check == true and autorestic_config_yaml != "CHANGEME" and config_update.changed == true
2 changes: 1 addition & 1 deletion tasks/install_autorestic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
ansible.builtin.file:
path: "{{ autorestic_download_directory }}"
state: directory
mode: 0755
mode: "0755"

- name: Download autorestic
ansible.builtin.get_url:
Expand Down
2 changes: 1 addition & 1 deletion tasks/install_restic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
ansible.builtin.file:
path: "{{ restic_download_directory }}"
state: directory
mode: 0755
mode: "0755"

- name: Download restic
ansible.builtin.get_url:
Expand Down

0 comments on commit 6107754

Please sign in to comment.