Limiting pip to not run as sudo

This commit is contained in:
Tyler Hale 2021-09-29 08:49:31 -06:00
parent 939b00b589
commit 3ecd676f97
Signed by: Tyler
GPG key ID: 3F9270F8F70AC13D

View file

@ -13,18 +13,21 @@
name: pip name: pip
state: latest state: latest
when: ansible_python_version is version('3', '>=') when: ansible_python_version is version('3', '>=')
become: no
- name: Install latest python2-cryptography - name: Install latest python2-cryptography
package: package:
name: python2-cryptography name: python2-cryptography
state: latest state: latest
when: ((ansible_python_version is version('2', '>=')) and (ansible_python_version is version('3', '<')) ) when: ((ansible_python_version is version('2', '>=')) and (ansible_python_version is version('3', '<')) )
become: no
- name: Install latest cryptography - name: Install latest cryptography
pip: pip:
name: cryptography name: cryptography
state: latest state: latest
when: ansible_python_version is version('3', '>=') when: ansible_python_version is version('3', '>=')
become: no
- name: Ensure directory exists for local self-signed TLS certs - name: Ensure directory exists for local self-signed TLS certs
file: file: