Replace install_method by odl_install_method
[integration/packaging/ansible-opendaylight.git] / tasks / install_odl.yml
1 ---
2 # Check the OS and branch for either RPM or Deb installs
3
4 # Docs:
5 # `ansible_os_family` param: Operating System family (Debian/RedHat)
6 # `ansible_distribtion` param: Operating system (Debian/Ubuntu/CentOS etc.)
7
8 # Install ODL .deb using debian repo
9 - include_tasks: install_odl_via_deb_repo.yml
10   when:
11     - ansible_os_family == "Debian"
12     - odl_install_method == "deb_repo"
13
14 # Install ODL using .deb URL or local path to a .deb file
15 - include_tasks: install_odl_via_deb_path.yml
16   when:
17     - ansible_os_family == "Debian"
18     - odl_install_method == "deb_path"
19
20 # Install ODL using Yum repo config
21 - include_tasks: install_odl_via_rpm_repo.yml
22   when:
23     - (ansible_os_family == "RedHat") or
24       (ansible_os_family == "Suse")
25     - odl_install_method == "rpm_repo"
26
27 # Install ODL using rpm URL or a local path to a rpm file
28 - include_tasks: install_odl_via_rpm_path.yml
29   when:
30     - (ansible_os_family == "RedHat") or
31       (ansible_os_family == "Suse")
32     - odl_install_method == "rpm_path"