b698108980
Deploy new config to the Ansible server / trigger-webhook (pull_request) Successful in 14s
19 lines
481 B
Bash
Executable File
19 lines
481 B
Bash
Executable File
#!/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
|
|
pip install -r requirements.txt
|
|
|
|
# Install collections from the file
|
|
ansible-galaxy collection install -r requirements.yaml -p ./collections/
|
|
|
|
# Install roles
|
|
ansible-galaxy role install -r requirements.yaml -p ./roles/
|
|
|
|
# Installation is finished, remove the lock
|
|
rm /tmp/vmn_ansible_lock_file.lock
|