123456789101112131415161718192021222324252627282930 |
- ---
- # This playbook prepare a new system directories
- - name: Create directories structure
- file:
- path: "{{ odoo_root_path }}/{{ odoo_system_name }}/{{ item }}"
- state: directory
- mode: 0777
- with_items: "{{ odoo_default_paths }}"
- become: true
- - name: Create file configuration
- template:
- src: openerp-server.j2
- dest: "{{ odoo_root_path }}/{{ odoo_system_name }}/config/openerp-server.conf"
- backup: yes
- - name: Create container
- docker_container:
- name: "{{ odoo_system_name }}"
- image: "odoo/eiru:1.0"
- exposed_ports:
- - "{{ odoo_system_port }}:8069"
- links:
- - "{{ postgres_container_name }}:db"
- volumes:
- - "{{ odoo_root_path }}/{{ odoo_system_name }}/config:/etc/odoo"
- - "{{ odoo_root_path }}/{{ odoo_system_name }}/custom-addons:/mnt/extra-addons"
- - "{{ odoo_root_path }}/{{ odoo_system_name }}/files:/var/lib/odoo"
- become: true
|