19 lines
462 B
YAML
19 lines
462 B
YAML
---
|
|
# 20260929 - Hyperling
|
|
# Ensure an existing run is not active, otherwise bail.
|
|
|
|
- name: General | Tests | Existing Run | Lock | Remove
|
|
file:
|
|
name: "{{ lock_file }}"
|
|
state: absent
|
|
|
|
- name: General | Tests | Existing Run | Lock | Remove | Check
|
|
stat:
|
|
path: "{{ lock_file }}"
|
|
register: lock_exists
|
|
|
|
- name: General | Tests | Existing Run | Lock | Remove | Fail
|
|
fail:
|
|
msg: "ERROR: Lock file still exists!"
|
|
when: lock_exists.stat.exists
|