# Install Ansible, required for Packer's ansible-local provisioner
# Git is required by the ansible-galaxy tool when installing roles
-sudo dnf install -y ansible git python-dnf
+# Ansible will fail if selinux is enabled but bindings not installed
+sudo dnf install -y ansible git python-dnf libselinux-python
# Install the latest release of ODL's Ansible role from Ansible Galaxy
# The `ansible-galaxy` tool was installed by Ansible's RPM
ansible_version="origin/master"
cat > /tmp/requirements.yml << EOM
- name: opendaylight
- src: https://github.com/dfarrell07/ansible-opendaylight
+ src: git+https://git.opendaylight.org/gerrit/p/integration/packaging/ansible-opendaylight.git
version: $ansible_version
EOM
sudo ansible-galaxy install -r /tmp/requirements.yml