This playbook takes care of the following:
- Odoo
- Postgresql
- NGINX
- SSL certificate (Let's Encrypt)
- UFW
- Fail2ban
- Automatic backup of database and filestore using autopostgresqlbackup
Prerequisites:
- Ansible (https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html)
- An Ubuntu 20.04 machine for Odoo 15.0
- An Ubuntu 18.04 machine for Odoo 13.0 and 14.0
Parameters:
- domain (optional): e.g. odoo.mycompany.com certbot needs this to get a certificate
- email (optional): Used for notifications about your SSL certificate and backups
- version (optional): The Odoo version default is 15.0
- target: Target in Ansible hosts file
How to use:
git clone [email protected]:onesteinbv/ansible-playbooks.git onestein-ansible-playbooks cd onestein-ansible-playbooks ansible-playbook install_odoo_playbook.yml -e target=odoo-vm -e domain=odoo.mycompany.com -e [email protected] -e version=15.0