+++ /dev/null
-- name: Add jessie-backports
- apt_repository:
- repo="deb http://httpredir.debian.org/debian jessie-backports main"
- state=present
- filename='jessie-backports'
- update_cache=yes
\ No newline at end of file
-- name: Add the repository key to apt
- apt_key:
- url={{ deb_key }}
- state=present
-
- name: Add ODL deb repo
apt_repository:
- repo={{ deb_repo_url }}
- state=present
- filename='opendaylight'
- update_cache=yes
-
-- include: add_jessie_backports.yml
\ No newline at end of file
+ repo: "{{ deb_repo_url }}"
+ state: present
+ update_cache: yes
# Docs:
# `ansible_os_family` param: Operating System family (Debian/RedHat)
# `ansible_distribtion` param: Operating system (Debian/Ubuntu/CentOS etc.)
-# `ansible_distribution_version` param: The complete version of the OS
-# `ansible_distribution_major_version` param: The major version of the OS
-
-# The .debs are currently hosted in OpenSUSE Build Service (OBS).
-# In OBS, the name of the .deb repository for Debian contains the OS name
-# in the form Debian_{major_version} (eg: Debian_8.0).
-- name: Set OS name for .deb repo for Debian in OBS
- set_fact:
- os="{{ ansible_distribution }}_{{ ansible_distribution_major_version }}.0"
- when:
- ansible_distribution == "Debian"
-
-# In OBS, the name of the .deb repository for Ubuntu contains the OS name
-# in the form xUbuntu_{version} (eg: xUbuntu_16.04).
-- name: Set OS name for .deb repo for Ubuntu in OBS
- set_fact:
- os="x{{ ansible_distribution }}_{{ ansible_distribution_version }}"
- when:
- - ansible_distribution == "Ubuntu" and ansible_distribution_version == "16.04"
# Install ODL .deb using debian repo
- include: install_odl_via_deb_repo.yml
- name: Install ODL via Deb repo
apt:
- name=opendaylight
- state=present
\ No newline at end of file
+ name: opendaylight
+ state: present
# 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"
-deb_repo_url: "deb http://download.opensuse.org/repositories/home:/akshitajha/{{ os }}/ /"
-# URL to add the repository key to 'apt'
-deb_key: "http://download.opensuse.org/repositories/home:akshitajha/{{ os }}/Release.key"
+deb_repo_url: "ppa:odl-team/carbon"
# 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."
# ansible will attempt to download deb before installing."
# See: http://docs.ansible.com/ansible/apt_module.html
# This is used when `install_method` is "deb_path"
-deb_path: "http://download.opensuse.org/repositories/home:/akshitajha/{{ os }}/all/opendaylight_5.0.0-1_all.deb"
+deb_path: ""