blob: 169f834883597fb88c995b4ba0abaf615ed534a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
- name: Reset number of reboots
ansible.builtin.set_fact:
file_wait_reboots_left: '{{ file_wait_reboots }}'
- name: Check if file exists
ansible.builtin.include_tasks: check.yml
- name: Fail unless file exists
ansible.builtin.fail:
msg: 'File is missing: {{ file_wait_path }}'
when: file_wait_check is not defined or file_wait_check is not succeeded or file_wait_check is unreachable
|