source: main/waeup-ansible/roles/odoo/tasks/main.yml @ 14912

Last change on this file since 14912 was 14912, checked in by uli, 7 years ago

Run odoo in proxy-mode.

File size: 940 bytes
Line 
1---
2- name: "install needed packages"
3  become: yes
4  apt:
5      name: "{{ item }}"
6      state: present
7  with_items:
8      - postgresql
9      - aptitude
10      - python3-pip
11
12- name: "install odoo repo key"
13  become: yes
14  apt_key:
15      url: "https://nightly.odoo.com/odoo.key"
16      state: present
17
18- name: "enable odoo PPA"
19  become: yes
20  apt_repository:
21      repo: deb http://nightly.odoo.com/11.0/nightly/deb/ ./
22      state: present
23  notify: update package cache
24
25- name: "install additional python packages"
26  become: yes
27  pip:
28      name: "{{ item }}"
29      executable: pip3
30  with_items:
31      - num2words
32      - vobject
33      - qrcode
34
35- name: "install odoo package"
36  become: yes
37  apt:
38      name: odoo
39      state: present
40
41- name: "enable proxy mode"
42  become: yes
43  ini_file:
44      path: /etc/odoo/odoo.conf
45      section: "options"
46      option: "proxy_mode"
47      value: True
48      backup: yes
49  notify: restart odoo
Note: See TracBrowser for help on using the repository browser.