From 6107754ae62fc0904e5433fe00e6ec6e685da853 Mon Sep 17 00:00:00 2001 From: FuzzyMistborn Date: Sun, 9 Jun 2024 22:37:32 -0400 Subject: [PATCH] Lint --- .yamllint | 6 ++++++ defaults/main.yml | 4 ++-- tasks/configure.yml | 2 +- tasks/install_autorestic.yml | 2 +- tasks/install_restic.yml | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.yamllint b/.yamllint index 6d0de9d..a51fe76 100644 --- a/.yamllint +++ b/.yamllint @@ -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 diff --git a/defaults/main.yml b/defaults/main.yml index f77be1c..90f2f2c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 \ No newline at end of file +autorestic_run_check: true diff --git a/tasks/configure.yml b/tasks/configure.yml index fa1114f..e43e5c5 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -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 \ No newline at end of file + when: autorestic_run_check == true and autorestic_config_yaml != "CHANGEME" and config_update.changed == true diff --git a/tasks/install_autorestic.yml b/tasks/install_autorestic.yml index 982ba12..96d1118 100644 --- a/tasks/install_autorestic.yml +++ b/tasks/install_autorestic.yml @@ -46,7 +46,7 @@ ansible.builtin.file: path: "{{ autorestic_download_directory }}" state: directory - mode: 0755 + mode: "0755" - name: Download autorestic ansible.builtin.get_url: diff --git a/tasks/install_restic.yml b/tasks/install_restic.yml index 00c54a3..31822c1 100644 --- a/tasks/install_restic.yml +++ b/tasks/install_restic.yml @@ -46,7 +46,7 @@ ansible.builtin.file: path: "{{ restic_download_directory }}" state: directory - mode: 0755 + mode: "0755" - name: Download restic ansible.builtin.get_url: