update syntax for if

This commit is contained in:
Michael Porter 2018-09-10 10:15:08 -05:00
parent f4faa4d451
commit 0f8b8f32ee
No known key found for this signature in database
GPG Key ID: 5471D27291D993FA

View File

@ -10,5 +10,5 @@
version: "{{ item.version | default(omit) }}"
virtualenv: "{{ item.virtualenv | default(omit) }}"
state: "{{ item.state | default(omit) }}"
executable: {{ 'pip3' if pip_package == "python3-pip" else 'pip' }}
executable: "{{ 'pip3' if pip_package == 'python3-pip' else 'pip' }}"
with_items: "{{ pip_install_packages }}"