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:
|
||||
name: "{{ pip_package }}"
|
||||
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.
|
||||
pip:
|
||||
|
|
Loading…
Reference in New Issue