Skip to content

Commit 83cd290

Browse files
committed
use uv for running ansible
1 parent 96c108e commit 83cd290

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/test-playbook.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@ then
2323
EOF
2424
fi
2525

26+
# Install uv
27+
curl -LsSf https://astral.sh/uv/install.sh | sh
28+
source $HOME/.local/bin/env
29+
2630
# Install the Ansible dependencies.
27-
ansible-galaxy role install -r requirements.yml -p ./roles
31+
uvx --from ansible-core ansible-galaxy role install -r requirements.yml -p ./roles
2832

2933
# Print our site-specific configuration file, for debugging purposes.
3034
cat inventory/local_site_specific_vars.yml
3135

3236
# Run the playbook!
33-
ansible-playbook --connection=local -e @inventory/local_site_specific_vars.yml -v ${playbook}
37+
uvx --from ansible-core ansible-playbook --connection=local -e @inventory/local_site_specific_vars.yml -v ${playbook}

0 commit comments

Comments
 (0)