
include is marked as deprecated since ansible 2.4[0] Switch to include_tasks or import_playbook as necessary [0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated Change-Id: Ieff641e85a61b596f8a3a96820e1842d91f8f05c
45 lines
1.8 KiB
YAML
45 lines
1.8 KiB
YAML
---
|
|
# Copyright 2017, Ericsson AB
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Set the packages to install
|
|
set_fact:
|
|
neutron_optional_combined_pip_packages: |-
|
|
{% set packages = neutron_optional_opendaylight_pip_packages %}
|
|
{% if 'networking_sfc.services.sfc.plugin.SfcPlugin' in neutron_plugin_base %}
|
|
{% set _ = packages.extend(neutron_optional_opendaylight_sfc_pip_packages) %}
|
|
{% endif %}
|
|
{{ packages }}
|
|
|
|
- name: Install OpenDaylight pip packages
|
|
pip:
|
|
name: "{{ neutron_optional_combined_pip_packages }}"
|
|
state: "{{ neutron_pip_package_state }}"
|
|
virtualenv: "{{ neutron_bin | dirname }}"
|
|
virtualenv_site_packages: "no"
|
|
extra_args: >-
|
|
{{ neutron_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
|
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
|
{{ pip_install_options | default('') }}
|
|
register: install_packages
|
|
until: install_packages is success
|
|
retries: 5
|
|
delay: 2
|
|
tags:
|
|
- opendaylight-install
|
|
- opendaylight-pip-packages
|
|
|
|
- include_tasks: setup_ovs_opendaylight.yml
|
|
when: neutron_services['neutron-server']['group'] not in group_names
|