|
|
|
@ -6,8 +6,8 @@ |
|
|
|
|
- gcc |
|
|
|
|
- postgresql |
|
|
|
|
- postgresql-devel |
|
|
|
|
- rh-python36-python-virtualenv |
|
|
|
|
- rh-python36-python-pip |
|
|
|
|
- python3-virtualenv |
|
|
|
|
- python3-pip |
|
|
|
|
- python-setuptools # Needed for pip install expect |
|
|
|
|
- python-pip # Also needed to install expect |
|
|
|
|
tags: pgadmin4 |
|
|
|
@ -31,6 +31,21 @@ |
|
|
|
|
when: pga_venv_27.stat.exists |
|
|
|
|
tags: pgadmin4 |
|
|
|
|
|
|
|
|
|
- name: Wipe the venv on upgrade |
|
|
|
|
file: path={{ pga_root_dir }}/{{ item }} state=absent |
|
|
|
|
loop: |
|
|
|
|
- lib |
|
|
|
|
- lib64 |
|
|
|
|
- include |
|
|
|
|
- bin |
|
|
|
|
- venv |
|
|
|
|
when: pga_install_mode != 'none' |
|
|
|
|
tags: pgadmin4 |
|
|
|
|
|
|
|
|
|
- name: Create the venv dir |
|
|
|
|
file: path={{ pga_root_dir }}/venv state=directory |
|
|
|
|
tags: pgadmin4 |
|
|
|
|
|
|
|
|
|
- name: Create the virtualenv |
|
|
|
|
pip: |
|
|
|
|
name: |
|
|
|
@ -39,19 +54,20 @@ |
|
|
|
|
- gunicorn |
|
|
|
|
- futures |
|
|
|
|
- psycopg2 |
|
|
|
|
- werkzeug==0.16.1 |
|
|
|
|
- ldap3==2.6.1 |
|
|
|
|
state: latest |
|
|
|
|
virtualenv: "{{ pga_root_dir }}" |
|
|
|
|
virtualenv_command: /opt/rh/rh-python36/root/usr/bin/virtualenv |
|
|
|
|
- werkzeug |
|
|
|
|
- ldap3 |
|
|
|
|
virtualenv: "{{ pga_root_dir }}/venv" |
|
|
|
|
virtualenv_command: /usr/bin/virtualenv-3 |
|
|
|
|
virtualenv_python: /usr/bin/python3 |
|
|
|
|
notify: restart pgadmin4 |
|
|
|
|
tags: pgadmin4 |
|
|
|
|
|
|
|
|
|
- name: Install pgadmin4 |
|
|
|
|
pip: |
|
|
|
|
name: "{{ pga_pip_url }}" |
|
|
|
|
virtualenv: "{{ pga_root_dir }}" |
|
|
|
|
virtualenv_command: /opt/rh/rh-python36/root/usr/bin/virtualenv |
|
|
|
|
virtualenv: "{{ pga_root_dir }}/venv" |
|
|
|
|
virtualenv_command: /usr/bin/virtualenv-3 |
|
|
|
|
virtualenv_python: /usr/bin/python3 |
|
|
|
|
register: pga_pip |
|
|
|
|
notify: restart pgadmin4 |
|
|
|
|
tags: pgadmin4 |
|
|
|
|