Fix linting messages

- fix truthy values to proper booleans
- fix too long lines: wrapped
- fix indentation
- fix amount of preceding whitespace
- fix argument_spec syntax: borg_retention_policy as type dict with specific options
This commit is contained in:
Max Fuxjäger 2025-04-28 10:47:35 +02:00 committed by Manu
parent 320975170d
commit e2f8e75155
4 changed files with 44 additions and 39 deletions

View File

@ -115,6 +115,9 @@ argument_specs:
type: bool
description: Bypass Borg error about a repository that has been moved.
borg_retention_policy:
type: dict
description: Define the pruning policy
options:
keep_secondly:
type: int
required: false

View File

@ -26,6 +26,6 @@
user: "{{ borg_user }}"
cron_file: "{{ borgmatic_timer_cron_name }}"
name: PATH
env: yes
env: true
value: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
...

View File

@ -61,5 +61,7 @@
- name: Show hints
when: "'backup_init_repo' not in ansible_run_tags"
ansible.builtin.debug:
msg: "Attention: Since the repo was not initialized automatically, the systemd service (borgmatic.service) and the timer (borgmatic.timer) are not activated."
msg: >-
Attention: Since the repo was not initialized automatically,
the systemd service (borgmatic.service) and the timer (borgmatic.timer) are not activated.
...