For unkown reasons, when using the plain ppa, apt sets the Ubuntu
version wrongly in the openstack gates. The result is that all
gates using Ubuntu and ODL fail, for example in this patch:
https://review.openstack.org/#/c/553333/
Using this syntax instead, we force apt to get the correct Ubuntu
version and works, as tested here:
https://review.openstack.org/#/c/559065/
This syntax is valid from the point of view of ansible as it is shown
as an example in their documentation:
docs.ansible.com/ansible/latest/modules/apt_repository_module.html
Change-Id: I8440fa9714137f22e43aa8cf9291a0e82a3a02e1
Signed-off-by: Manuel Buil <mbuil@suse.com>
apt:
name: opendaylight
state: present
+ allow_unauthenticated: yes
# URL of the deb repository to use when installing ODL from a repo
# NB: This will only take effect when `install_method` is "deb_repo"
# TODO: When deb snaps are built, point to a repo like rpm
-deb_repo_url: "ppa:odl-team/oxygen"
+deb_repo_url: "deb http://ppa.launchpad.net/odl-team/oxygen/ubuntu {{ ansible_lsb.codename }} main"
# This will be passed as the `name` param to the Ansible `yum` module.
# `name` param docs: "You can also pass a url or a local path to a rpm file."