Fix Packer libvirt, missing selinux bindings
[integration/packaging.git] / packer / provision / config_ansible_fedora.sh
index 40713d261dddde7e7469c5cde456c9ec2c4dc6a5..6d0f92e480a861a8c28224ebe6ff3b39d95c86f0 100644 (file)
@@ -7,7 +7,8 @@ set -x
 
 # 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
@@ -30,7 +31,7 @@ sudo dnf install -y ansible git python-dnf
 ansible_version="origin/master"
 cat > /tmp/requirements.yml << EOM
 - name: opendaylight
-  src: https://github.com/opendaylight/integration-packaging-ansible-opendaylight.git
+  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