mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2024-05-27 17:01
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user