setup, make the output a bit more consistent.

This commit is contained in:
me
2026-09-29 14:34:38 -07:00
parent eb54844618
commit 772c2906dd
+2 -2
View File
@@ -213,10 +213,10 @@ ps -ef | grep ansible-playbook | grep -v grep
ansible_exists="$?"
lock_file=/tmp/ansible-playbook.lock
if [[ "$ansible_exists" == 0 ]]; then
echo "Playbook is already being executed. Exiting."
echo "- Playbook is already being executed. Exiting."
exit 0
elif [[ -e "$lock_file" ]]; then
echo "Playbook not being executed. Removing lock file."
echo "- Removing lock file."
sudo mv -v "$lock_file" "${lock_file}.disabled"
else
echo "- No processes or lockfile found."