Skip to content

Commit

Permalink
[FIX] 'odoo_install_type: pip', execute 'pip' related tasks as 'odoo_…
Browse files Browse the repository at this point in the history
…user' (not root)
  • Loading branch information
sebalix committed Jan 25, 2018
1 parent 4996adc commit b8c61d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/install_pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@
creates: "{{ odoo_pip_venv_path }}"

- name: Download the pip requirements file
become: yes
become_user: "{{ odoo_user }}"
get_url: url="{{ odoo_pip_requirements_url }}"
force=yes
dest="/home/{{ odoo_user }}/requirements.txt"

- name: Install Odoo dependencies (PyPi)
become: yes
become_user: "{{ odoo_user }}"
pip:
name: "{{ item }}"
virtualenv: "{{ odoo_pip_venv_path }}"
with_items: "{{ odoo_pip_dependencies }}"

- name: Install Odoo from pip external requirements file
become: yes
become_user: "{{ odoo_user }}"
pip:
requirements: /home/{{ odoo_user }}/requirements.txt
extra_args: --upgrade
Expand Down

0 comments on commit b8c61d3

Please sign in to comment.