Newer
Older
---
# Use python3 interpreter
ansible_python_interpreter: "/usr/bin/python3"
# Odoo vars
odoo_role_odoo_user: odoo
# Odoo role
odoo_role_download_strategy: "tar"
odoo_role_odoo_version: "14.0"
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
odoo_role_odoo_url: "https://gitlab.com/coopdevs/OCB/-/archive/{{ odoo_role_odoo_release }}/OCB-{{ odoo_role_odoo_release }}.tar.gz"
odoo_role_python_version: "3.8.12"
odoo_role_limit_time_cpu: 6000
odoo_role_limit_time_real: 12000
# Odoo provisioning
odoo_provisioning_version: "v0.7.15"
# Enables the web db manager, needed by backups
odoo_role_list_db: true
odoo_role_test_dbs: ["testodoo"]
# Nginx configuration
nginx_configs:
upstream:
- upstream odoo { server 127.0.0.1:8069; }
nginx_sites:
odoo:
- |
listen 80;
server_name {{ domains | default([inventory_hostname]) | join(' ') }};
rewrite ^(.*)$ https://$host$1 permanent;
odoo.ssl:
- |
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/{{ inventory_hostname }}/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/{{ inventory_hostname }}/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
server_name {{ domains | default([inventory_hostname]) | join(' ') }};
proxy_read_timeout 720s;
proxy_connect_timeout 720s;
proxy_send_timeout 720s;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
ssl on;
access_log /var/log/nginx/odoo.access.log;
error_log /var/log/nginx/odoo.error.log;
location / {
proxy_redirect off;
proxy_pass http://odoo;
}
location /longpolling/ {
proxy_pass http://127.0.0.1:8072;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
gzip_types text/css text/less text/plain text/xml application/xml application/json application/javascript;
gzip on;
odoo_role_odoo_core_modules_dict:
shared:
- account
- account_edi
- account_edi_facturx
- account_edi_ubl
- account_fleet
- account_qr_code_sepa
- analytic
- auth_signup
- base
- base_iban
- base_import
- base_setup
- base_vat
- contacts
- crm
- fleet
- l10n_es
- hr
- hr_attendance
- hr_contract
- hr_expense
- hr_fleet
- hr_holidays
- hr_holidays_attendance
- hr_recruitment
- hr_timesheet
- l10n_es
- payment_transfer
- product
- project
- project_timesheet_holidays
- purchase
- sale
- sale_expense
- sale_management
- sale_project
- sales_team
- uom
odoo_role_odoo_community_modules_dict:
shared:
- account_fiscal_year
- account_reconciliation_widget
- account_statement_import
- base_bank_from_iban
- hr_attendance_report_theoretical_time
- hr_holidays_public
- hr_timesheet_task_domain
- hr_timesheet_task_stage
- l10n_es_aeat
- l10n_es_aeat_mod111
- l10n_es_aeat_mod115