Remove join filter from pip module tasks
Ansible 2.2 now treats the 'name' argument for the pip module as a list, removing the need for us to implement the join filter to optimise the install execution. Change-Id: Ie488ed679031c53faa9256ae8ec753f37e69b26a
This commit is contained in:
parent
9fc9ffaede
commit
f27442f2b9
@ -30,7 +30,7 @@
|
||||
|
||||
- name: Install requires pip packages
|
||||
pip:
|
||||
name: "{{ neutron_requires_pip_packages | join(' ') }}"
|
||||
name: "{{ neutron_requires_pip_packages }}"
|
||||
state: "{{ neutron_pip_package_state }}"
|
||||
extra_args: >-
|
||||
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
||||
@ -73,7 +73,7 @@
|
||||
|
||||
- name: Install pip packages
|
||||
pip:
|
||||
name: "{{ neutron_pip_packages | join(' ') }}"
|
||||
name: "{{ neutron_pip_packages }}"
|
||||
state: "{{ neutron_pip_package_state }}"
|
||||
virtualenv: "{{ neutron_bin | dirname }}"
|
||||
virtualenv_site_packages: "no"
|
||||
@ -98,10 +98,10 @@
|
||||
- name: Install optional pip packages
|
||||
pip:
|
||||
name: >-
|
||||
{{ (neutron_bgp | bool) | ternary(neutron_optional_bgp_pip_packages | join(' '), '') }}
|
||||
{{ (neutron_fwaas | bool) | ternary(neutron_optional_fwaas_pip_packages | join(' '), '') }}
|
||||
{{ (neutron_lbaasv2 | bool) | ternary(neutron_optional_lbaas_pip_packages | join(' '), '') }}
|
||||
{{ (neutron_vpnaas | bool) | ternary(neutron_optional_vpnaas_pip_packages | join(' '), '') }}
|
||||
{{ (neutron_bgp | bool) | ternary(neutron_optional_bgp_pip_packages, []) +
|
||||
(neutron_fwaas | bool) | ternary(neutron_optional_fwaas_pip_packages, []) +
|
||||
(neutron_lbaasv2 | bool) | ternary(neutron_optional_lbaas_pip_packages, []) +
|
||||
(neutron_vpnaas | bool) | ternary(neutron_optional_vpnaas_pip_packages, []) }}
|
||||
state: "{{ neutron_pip_package_state }}"
|
||||
virtualenv: "{{ neutron_bin | dirname }}"
|
||||
virtualenv_site_packages: "no"
|
||||
|
Loading…
Reference in New Issue
Block a user