mirror of
https://github.com/roles-ansible/ansible_role_restic/
synced 2024-12-05 01:30:18 +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
|
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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue