mirror of
https://github.com/geerlingguy/ansible-role-pip.git
synced 2024-06-26 10:24:47 +02:00
Adds Mac version to install pip
Adds a conditional install of python3 when on Mac, which includes `pip`.
This commit is contained in:
parent
0360ca42ee
commit
dbda768ba2
|
@ -1,8 +1,15 @@
|
||||||
---
|
---
|
||||||
- name: Ensure Pip is installed.
|
- name: Ensure Pip is installed (linux)
|
||||||
package:
|
package:
|
||||||
name: "{{ pip_package }}"
|
name: "{{ pip_package }}"
|
||||||
state: present
|
state: present
|
||||||
|
when: ansible_facts["os_family"] != "Darwin"
|
||||||
|
|
||||||
|
- name: Ensure Pip is installed (Mac)
|
||||||
|
package:
|
||||||
|
name: python
|
||||||
|
state: present
|
||||||
|
when: ansible_facts["os_family"] == "Darwin"
|
||||||
|
|
||||||
- name: Ensure pip_install_packages are installed.
|
- name: Ensure pip_install_packages are installed.
|
||||||
pip:
|
pip:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user