mirror of
https://github.com/geerlingguy/ansible-role-pip.git
synced 2024-11-16 10:45:11 +01:00
15 lines
434 B
YAML
15 lines
434 B
YAML
---
|
|
- name: Ensure Pip is installed.
|
|
package:
|
|
name: "{{ pip_package }}"
|
|
state: present
|
|
|
|
- name: Ensure pip_install_packages are installed.
|
|
pip:
|
|
name: "{{ item.name | default(item) }}"
|
|
version: "{{ item.version | default(omit) }}"
|
|
virtualenv: "{{ item.virtualenv | default(omit) }}"
|
|
state: "{{ item.state | default(omit) }}"
|
|
executable: "{{ pip_executable }}"
|
|
with_items: "{{ pip_install_packages }}"
|