Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
name: "pip"
state: "latest"
chdir: "{{ paddles_repo_path }}"
+ virtualenv_python: "python3"
virtualenv: "{{ paddles_repo_path }}/virtualenv"
become_user: "{{ paddles_user }}"
- name: Install requirements via pip
---
paddles_extra_packages:
# The following is a requirement of ansible's postgresql module
- - python-psycopg2
+ - python3-psycopg2
# The following packages are requirements for running paddles
- git-all
- - python-dev
- - python-pip
- - python-virtualenv
+ - python3-dev
+ - python3-pip
+ - python3-virtualenv
+ - virtualenv
- postgresql
- postgresql-contrib
- postgresql-server-dev-all
# The following packages are requirements for running paddles
- gcc
- git
- - python-devel
- - python-pip
- - python-virtualenv
+ - python3-devel
+ - python3-pip
+ - python3-virtualenv
- postgresql
- postgresql-contrib
- postgresql-devel
register: virtualenv
- name: Create the virtualenv
- shell: virtualenv ./virtualenv chdir={{ pulpito_repo_path }}
+ shell: virtualenv -p python3 ./virtualenv chdir={{ pulpito_repo_path }}
become_user: "{{ pulpito_user }}"
when: virtualenv.stat.exists == false
pulpito_extra_packages:
- git-core
- supervisor
- - python-pip
- - python-virtualenv
+ - python3-pip
+ - python3-virtualenv
+ - virtualenv
supervisor_service: supervisor
supervisor_conf_d: /etc/supervisor/conf.d/
pulpito_extra_packages:
- git-all
- supervisor
- - python-pip
- - python-virtualenv
+ - python3-pip
+ - python3-virtualenv
supervisor_service: supervisord
supervisor_conf_d: /etc/supervisord.d
---
pulpito_extra_packages:
- git
- - python-pip
- - python-virtualenv
+ - python3-pip
+ - python3-virtualenv
- supervisor
supervisor_service: supervisord