1
0
Fork 0
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:
L3D 2022-01-10 14:31:25 +01:00
parent d072148312
commit 390c780b24
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 4 additions and 0 deletions

View file

@ -8,6 +8,7 @@
masked: false masked: false
with_items: '{{ restic_backups }}' with_items: '{{ restic_backups }}'
ignore_errors: true ignore_errors: true
tags: skip_ansible_lint
when: when:
- restic_create_schedule - restic_create_schedule
- item.name is defined - item.name is defined

View file

@ -27,6 +27,7 @@
- item.scheduled | default(false) - item.scheduled | default(false)
- ansible_service_mgr != 'systemd' or restic_force_cron | default(false) or restic_schedule_type == "cronjob" - ansible_service_mgr != 'systemd' or restic_force_cron | default(false) or restic_schedule_type == "cronjob"
ignore_error: true ignore_error: true
tags: skip_ansible_lint
register: cron_delete register: cron_delete
- name: "(SCHEDULE) (OLD) make sure 'do1jlr.restic backup {{ item.name }}' is not in /etc/crontab" - name: "(SCHEDULE) (OLD) make sure 'do1jlr.restic backup {{ item.name }}' is not in /etc/crontab"

View file

@ -11,6 +11,7 @@
masked: false masked: false
with_items: '{{ restic_backups }}' with_items: '{{ restic_backups }}'
ignore_errors: true ignore_errors: true
tags: skip_ansible_lint
failed_when: false failed_when: false
changed_when: false changed_when: false
when: when:
@ -33,6 +34,7 @@
- restic_schedule_type == "cronjob" or restic_force_cron | default(false) - restic_schedule_type == "cronjob" or restic_force_cron | default(false)
ignore_errors: true ignore_errors: true
failed_when: false failed_when: false
tags: skip_ansible_lint
changed_when: false changed_when: false
- name: (SCHEDULE) (SYSTEMD) delete systemd .timer file - name: (SCHEDULE) (SYSTEMD) delete systemd .timer file