Limiting pip to not run as sudo
This commit is contained in:
parent
939b00b589
commit
3ecd676f97
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue