OCA / ansible-odoo

Ansible role for Odoo
GNU General Public License v3.0
106 stars 114 forks source link

Installing the database Odoo via ansible #61

Open collex100 opened 6 years ago

collex100 commented 6 years ago

Can I use the ansible to give such commands:

$ ./odoo-bin shell

$ from openerp.service import db
db.exp_create_database('dbname',False,'ru_RU','admin','admin')

or $ ./odoo-bin -d dbname -i crm,sale --without-demo=all

If yes, then please help how it can be done.

Thanks!

sebalix commented 6 years ago

There is no such hook ATM, but it could be added indeed to run some commands before/after configuration/installation. Feel free to propose a PR to add such feature, it will be very welcome.

collex100 commented 6 years ago

Thanks for your reply. Is there any example of a playbook to execute the commands above. It is not clear how to enter the shell console (on a remote server, via ansible) and then out of it to give the following command. Thank you!

collex100 commented 6 years ago

I have several commands that I execute in the console. These several commands set a clean database in odoo and run certain modules in this database. In the end, I overload the odoo. How can I ask you that you could make such a playbook? Thank you!