12 lines
261 B
Bash
Executable File
12 lines
261 B
Bash
Executable File
#!/bin/bash
|
|
|
|
LOCK_FILE=/tmp/vmn_ansible_lock_file.lock
|
|
|
|
while [ -f "$LOCK_FILE" ]
|
|
do
|
|
sleep 1s
|
|
done
|
|
|
|
source .venv/bin/activate
|
|
ansible-playbook playbooks/maintain.yaml --vault-pass-file ~/vault_password -i inventory/hosts.yaml --private-key ~/.ssh/ansible_key
|