From 3c6cf5d7b8846d24758eca1fc54068a10998ea8a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 4 Jan 2026 05:30:20 +0000 Subject: [PATCH] Set ANSIBLE_CONFIG in provision script Ansible only looks for ansible.cfg in the current working directory, not in the playbook's directory. Export ANSIBLE_CONFIG to ensure our config file is found regardless of where provision is run from. --- bin/provision | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/provision b/bin/provision index 986c760..7149765 100755 --- a/bin/provision +++ b/bin/provision @@ -16,7 +16,11 @@ set -euo pipefail # Find the playbook - it's in .config/dotfiles/ relative to the bin directory SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" REPO_ROOT="$(dirname "$SCRIPT_DIR")" -PLAYBOOK="$REPO_ROOT/.config/dotfiles/playbook.yml" +DOTFILES_CONFIG="$REPO_ROOT/.config/dotfiles" +PLAYBOOK="$DOTFILES_CONFIG/playbook.yml" + +# Point Ansible to our config file (inventory, fact settings, etc.) +export ANSIBLE_CONFIG="$DOTFILES_CONFIG/ansible.cfg" # Ensure uv is available, install if missing if ! command -v uv &>/dev/null; then