mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-03 23:26:58 +02:00
Update to 2024-05-27 17:01
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
# Version of Odoo to deploy (name of the branch of the git repo
|
||||
odoo_version: 16.0
|
||||
odoo_version: 17.0
|
||||
# URL of the repository
|
||||
odoo_git_url: https://github.com/odoo/odoo.git
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -1,8 +1,8 @@
|
||||
---
|
||||
|
||||
odoo_packages:
|
||||
- python39-pip
|
||||
- python39-devel
|
||||
- python3.11-pip
|
||||
- python3.11-devel
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- libxml2-devel
|
||||
@@ -16,4 +16,4 @@ odoo_packages:
|
||||
- git
|
||||
- acl
|
||||
|
||||
odoo_venv_command: /bin/python3.9 -m venv
|
||||
odoo_venv_command: /bin/python3.11 -m venv
|
||||
|
@@ -1,8 +1,8 @@
|
||||
---
|
||||
|
||||
odoo_packages:
|
||||
- python3-pip
|
||||
- python3-devel
|
||||
- python3.11-pip
|
||||
- python3.11-devel
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- libxml2-devel
|
||||
@@ -16,4 +16,4 @@ odoo_packages:
|
||||
- git
|
||||
- acl
|
||||
|
||||
odoo_venv_command: /bin/python3.9 -m venv
|
||||
odoo_venv_command: /bin/python3.11 -m venv
|
||||
|
Reference in New Issue
Block a user