Update to 2024-05-27 17:01

This commit is contained in:
Daniel Berteaud
2024-05-27 17:01:00 +02:00
parent f12e79fb3f
commit d9515c7aab
17 changed files with 41 additions and 31 deletions

View File

@@ -5,7 +5,7 @@
notify: restart odoo-server
tags: odoo
- when: odoo_install_mode != 'none'
- when: odoo_install_mode == 'install'
block:
- name: Install odoo
command: "{{ odoo_root_dir }}/venv/bin/python3 {{ odoo_root_dir }}/app/setup.py install"
@@ -16,9 +16,11 @@
command: "{{ odoo_root_dir }}/venv/bin/python3 {{ odoo_root_dir }}/app/setup/odoo -c {{ odoo_root_dir }}/etc/odoo-server.conf -d {{ odoo_db_name }} -i base -u all --stop-after-init --syslog"
become_user: "{{ odoo_user }}"
- name: Restore SELinux context
command: restorecon -R {{ odoo_root_dir }}
tags: odoo
- name: Restore SELinux context
command: restorecon -R {{ odoo_root_dir }}
when: odoo_install_mode != 'none'
tags: odoo
- name: Install nginx configuration

View File

@@ -16,11 +16,14 @@
notify: restart odoo-server
- name: Add ACL
command: |
shell: |
setfacl -R -b -k {{ odoo_root_dir }}
setfacl -m u:nginx:X {{ odoo_root_dir }}
setfacl -R -m u:nginx:rX {{ odoo_root_dir }}/data {{ odoo_root_dir }}/app/addons {{ odoo_root_dir }}/app/odoo/addons {{ odoo_root_dir }}/enterprise
- name: Wipe the venv
file: path={{odoo_root_dir }}/venv state=absent
tags: odoo
- when: odoo_install_mode != 'none' and odoo_enterprise