Skip to content

Commit

Permalink
limit nodejs deps to odoo<12.0 and ubuntu<18.04
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarlr committed Jun 4, 2020
1 parent 2be5a55 commit 9131709
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,24 @@
- nodejs
- npm
state: present
when: odoo_role_odoo_version < "12.0"

- name: Install Less CSS via nodejs
become: yes
npm:
name: less
version: 2.7.2
global: yes
when: odoo_role_odoo_version < "12.0"

# This link is needed in Ubuntu 16.04 and in Ubuntu 18.04 raise and error.
# This link is needed in Ubuntu 16.04 and in Ubuntu 18.04 raise an error.
- name: Create node symlink
become: yes
file:
src: /usr/bin/nodejs
dest: /usr/bin/node
state: link
when: ansible_distribution == "Ubuntu" and not ansible_distribution_version >= "18.04"
when: odoo_role_odoo_version < "12.0" and ansible_distribution == "Ubuntu" and not ansible_distribution_version >= "18.04"

- name: Install Odoo
become: yes
Expand Down

0 comments on commit 9131709

Please # to comment.