diff --git a/roles/pip/defaults/main.yml b/roles/pip/defaults/main.yml index e688ea2..e3ae88a 100644 --- a/roles/pip/defaults/main.yml +++ b/roles/pip/defaults/main.yml @@ -2,11 +2,9 @@ # For Python 3, use python3-pip. pip_package_name: python3-pip pip_executable: "{{ 'pip3' if pip_package_name.startswith('python3') else 'pip' }}" -pip_executable_extra_args: ~ +pip_executable_extra_args: pip_environment_variables: {} - pip_packages: [] - -pip_requirements_file: ~ +pip_requirements_file: pip_package_state: present -pip_package_virtualenv: ~ +pip_package_virtualenv: diff --git a/roles/pip/tasks/main.yml b/roles/pip/tasks/main.yml index 2298b6b..fb72c24 100644 --- a/roles/pip/tasks/main.yml +++ b/roles/pip/tasks/main.yml @@ -22,5 +22,5 @@ state: "{{ pip_package_state | default(omit) }}" executable: "{{ pip_executable }}" extra_args: "{{ pip_executable_extra_args | default(omit) }}" - when: "pip_requirements_file" + when: pip_requirements_file environment: "{{ pip_environment_variables }}"