lock, add files which handle checking, creating, and then removing a temporary lock file.
This commit is contained in:
1 parent
3aa1819440
commit
2dbfffafd0
3 files changed
+56
No files matched your search
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# 20260929 - Hyperling
|
||||
# Ensure an existing run is not active, otherwise bail.
|
||||
|
||||
- name: General | Tests | Existing Run | Facts
|
||||
set_fact:
|
||||
lock_file: "/tmp/ansible-playbook.lock"
|
||||
|
||||
- name: General | Tests | Existing Run | Check
|
||||
stat:
|
||||
path: "{{ lock_file }}"
|
||||
register: lock_exists
|
||||
|
||||
- name: General | Tests | Existing Run | Exit
|
||||
meta: end_play
|
||||
when: lock_exists.stat.exists
|
||||
Reference in new issue
Block a user