tools: rewrite ppf-deploy as playbook wrapper

Replace sequential ansible ad-hoc calls with ansible-playbook.
Add ansible_playbook_cmd to shared library. Supports --check
for dry runs.
This commit is contained in:
Username
2026-02-17 23:18:46 +01:00
parent 8208670fc1
commit 782deab95d
2 changed files with 56 additions and 97 deletions

View File

@@ -108,6 +108,17 @@ ansible_cmd() {
)
}
# Runs ansible-playbook with venv activated and ANSIBLE_REMOTE_TMP set.
# Usage: ansible_playbook_cmd <ansible-playbook args...>
ansible_playbook_cmd() {
(
# shellcheck disable=SC1090
. "$ANSIBLE_VENV"
cd "$ANSIBLE_DIR"
ANSIBLE_REMOTE_TMP=/tmp/.ansible ansible-playbook "$@"
)
}
# ---------------------------------------------------------------------------
# Remote podman/compose wrappers
# ---------------------------------------------------------------------------