Syntax changes for use of pip_install
Syntax changes for consistency as follows: - Change parameter=value syntax to parameter: value in pip_install.yml - Change "== false" to "| bool == false", also for consistency. Change-Id: I728b44243910c7c5556df529e1a3291655903883
This commit is contained in:
parent
288b06c441
commit
b572da6804
@ -14,11 +14,12 @@
|
||||
# limitations under the License.
|
||||
---
|
||||
- name: "Install {{ package }} package from pip"
|
||||
pip: name="{{ package }}"
|
||||
state="{{ state | default(omit) }}"
|
||||
version="{{ version | default(omit) }}"
|
||||
virtualenv="{{ virtualenv | default(omit) }}"
|
||||
when: source_install is not defined or source_install == false
|
||||
pip:
|
||||
name: "{{ package }}"
|
||||
state: "{{ state | default(omit) }}"
|
||||
version: "{{ version | default(omit) }}"
|
||||
virtualenv: "{{ virtualenv | default(omit) }}"
|
||||
when: source_install is not defined or (source_install | bool == false)
|
||||
# NOTE (cinerama): We should be able to use the pip module here and
|
||||
# possibly merge these two tasks when
|
||||
# https://github.com/ansible/ansible-modules-core/pull/2600 lands.
|
||||
|
Loading…
x
Reference in New Issue
Block a user