#!/bin/bash set -e export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true # Create the Ansible venv if [ ! -d /var/cache/provision/ansible ]; then python -m venv /var/cache/provision/ansible fi source /var/cache/provision/ansible/bin/activate pip install --upgrade 'ansible>=10,<11' netaddr # Run the playbook cd /var/cache/provision/playbook exec ansible-playbook provision.yml