CHANGE: adds a lock file to the scripts
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Create a lock file to prevent other scripts from running with old modules
|
||||
touch /tmp/vmn_ansible_lock_file.lock
|
||||
|
||||
source .venv/bin/activate
|
||||
|
||||
# Install python packages
|
||||
@@ -10,3 +13,6 @@ ansible-galaxy collection install -r requirements.yml -p ./collections/
|
||||
|
||||
# Install roles
|
||||
ansible-galaxy role install -r requirements.yml -p ./roles/
|
||||
|
||||
# Installation is finished, remove the lock
|
||||
rm /tmp/vmn_ansible_lock_file.lock
|
||||
|
||||
Reference in New Issue
Block a user