mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2022-07-25 16:00
This commit is contained in:
20
roles/odoo/tasks/conf.yml
Normal file
20
roles/odoo/tasks/conf.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
|
||||
- name: Deploy server configuration
|
||||
template: src=odoo-server.conf.j2 dest={{ odoo_root_dir }}/etc/odoo-server.conf group={{ odoo_user }} mode=640
|
||||
notify: restart odoo-server
|
||||
tags: odoo
|
||||
|
||||
- when: odoo_install_mode != 'none'
|
||||
block:
|
||||
- name: Install odoo
|
||||
command: "{{ odoo_root_dir }}/venv/bin/python3 {{ odoo_root_dir }}/app/setup.py install"
|
||||
args:
|
||||
chdir: "{{ odoo_root_dir }}/app/"
|
||||
|
||||
- name: Initialize the DB and update modules
|
||||
command: "{{ odoo_root_dir }}/venv/bin/python3 {{ odoo_root_dir }}/app/setup/odoo -d {{ odoo_db_name }} -i base -u all --stop-after-init --syslog"
|
||||
become_user: "{{ odoo_user }}"
|
||||
|
||||
tags: odoo
|
||||
|
Reference in New Issue
Block a user