mirror of
https://github.com/roles-ansible/ansible_role_restic.git
synced 2024-12-11 23:41:32 +01:00
Skip linting for selected tasks
This commit is contained in:
parent
d072148312
commit
390c780b24
3 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
masked: false
|
||||
with_items: '{{ restic_backups }}'
|
||||
ignore_errors: true
|
||||
tags: skip_ansible_lint
|
||||
when:
|
||||
- restic_create_schedule
|
||||
- item.name is defined
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
- item.scheduled | default(false)
|
||||
- ansible_service_mgr != 'systemd' or restic_force_cron | default(false) or restic_schedule_type == "cronjob"
|
||||
ignore_error: true
|
||||
tags: skip_ansible_lint
|
||||
register: cron_delete
|
||||
|
||||
- name: "(SCHEDULE) (OLD) make sure 'do1jlr.restic backup {{ item.name }}' is not in /etc/crontab"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
masked: false
|
||||
with_items: '{{ restic_backups }}'
|
||||
ignore_errors: true
|
||||
tags: skip_ansible_lint
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
when:
|
||||
|
@ -33,6 +34,7 @@
|
|||
- restic_schedule_type == "cronjob" or restic_force_cron | default(false)
|
||||
ignore_errors: true
|
||||
failed_when: false
|
||||
tags: skip_ansible_lint
|
||||
changed_when: false
|
||||
|
||||
- name: (SCHEDULE) (SYSTEMD) delete systemd .timer file
|
||||
|
|
Loading…
Reference in a new issue