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
state: latest
when: ansible_python_version is version('3', '>=')
become: no
- name: Install latest python2-cryptography
package:
name: python2-cryptography
state: latest
when: ((ansible_python_version is version('2', '>=')) and (ansible_python_version is version('3', '<')) )
become: no
- name: Install latest cryptography
pip:
name: cryptography
state: latest
when: ansible_python_version is version('3', '>=')
become: no
- name: Ensure directory exists for local self-signed TLS certs
file: