Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing the database Odoo via ansible #61

Open
collex100 opened this issue Jan 14, 2018 · 3 comments
Open

Installing the database Odoo via ansible #61

collex100 opened this issue Jan 14, 2018 · 3 comments

Comments

@collex100
Copy link

collex100 commented Jan 14, 2018

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
Copy link
Collaborator

sebalix commented Jan 15, 2018

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
Copy link
Author

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
Copy link
Author

collex100 commented Jan 15, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants