Adds Mac version to install pip

Adds a conditional install of python3 when on Mac, which includes `pip`.
This commit is contained in:
Toby Griffiths 2022-10-17 09:24:28 +01:00 committed by GitHub
parent 0360ca42ee
commit dbda768ba2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions

View File

@ -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: