Fix pip version on Ubuntu

This commit is contained in:
phahulin 2019-12-09 18:11:01 +03:00 committed by GitHub
parent e5144b1beb
commit 7c980a9180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -32,9 +32,17 @@
- name: Install pyOpenSSL
pip:
executable: "{{ ansible_pip | default('pip') }}"
executable: "pip3"
name: pyOpenSSL
state: present
when: ansible_os_family == "Debian"
- name: Install pyOpenSSL
pip:
executable: "pip"
name: pyOpenSSL
state: present
when: ansible_os_family == "RedHat"
- name: Create directory for nginx SSL certificates
file: path=/etc/nginx/ssl state=directory mode=0755