-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay_10_odoo_deb.yml
58 lines (45 loc) · 1.37 KB
/
play_10_odoo_deb.yml
1
2
3
4
5
6
7
8
9
10
11
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
# Dieses Playbook MUSS mit Python2 als ansible_interpreter
# ausgeführt werden! Also den command
# ansible_python_interpreter=/usr/bin/python3
# im Inventory file weglassen! Ansonsten schlägt die Installation
# von psycopg2 (Python-Postgres-Adapter) fehl.
---
- name: Odoo installieren,
hosts:
- ehprod
- ehtest
- twprod
- twtest
- chrono123
- runbot
- testchrono
vars_files:
- vars
- vault
roles:
- ansible-odoo-deb
post_tasks:
- git:
repo: "{{ item.repo }}"
dest: "{{odoo_config_addons_path}}{{ item.dest }}"
force: yes
umask: '755'
with_items:
- "{{ odoo_custom_repos }}"
register: conf_changed
- file:
path: '/home/odoo/odoo/custom/'
owner: "{{ odoo_user }}"
group: "{{ odoo_user }}"
mode: 0755
recurse: yes
register: conf_changed
- service:
name: "{{ odoo_service }}"
state: restarted
when: conf_changed.changed
# TODO: user password encrypten vom odoo_user_passwd
# TODO https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module
# TODO maybe use syslog in case of multiple workers:
# TODO see here: https://www.odoo.com/de_DE/forum/hilfe-1/question/is-logging-safe-when-using-multiple-workers-43562
# TODO solve the Odoo multi-worker + chat problem by moving to nginx