Skip to content

Commit

Permalink
Redirect odoobin output (#52)
Browse files Browse the repository at this point in the history
Right now, if the command fails, Ansible gets nothing in output terms (neither err), and this is bad to debug. We need to go find the log inside the host at /etc/odoo/odoo.log, but this is mixed with other log entries. A perfect approach would feed both stdout and default log.

Note: this was already fixed in tasks/main.yml
  • Loading branch information
raneq authored May 20, 2019
1 parent 0c544d3 commit f70a253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/community-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
- name: Update Odoo modules list
become: yes
become_user: "{{ odoo_role_odoo_user }}"
command: "{{ odoo_role_odoo_python_path }} {{ odoo_role_odoo_bin_path }} -c {{ odoo_role_odoo_config_path }}/odoo.conf -d {{ odoo_role_odoo_db_name }} --update all --stop-after-init --without-demo=all"
command: "{{ odoo_role_odoo_python_path }} {{ odoo_role_odoo_bin_path }} -c {{ odoo_role_odoo_config_path }}/odoo.conf -d {{ odoo_role_odoo_db_name }} --update all --stop-after-init --without-demo=all --logfile=/dev/stdout --log-level=warn"

- name: Install community Odoo roles
become: yes
become_user: "{{ odoo_role_odoo_user }}"
command: "{{ odoo_role_odoo_python_path }} {{ odoo_role_odoo_bin_path }} -c {{ odoo_role_odoo_config_path }}/odoo.conf -d {{ odoo_role_odoo_db_name }} --init {{ odoo_role_community_odoo_modules }} --stop-after-init --without-demo=all"
command: "{{ odoo_role_odoo_python_path }} {{ odoo_role_odoo_bin_path }} -c {{ odoo_role_odoo_config_path }}/odoo.conf -d {{ odoo_role_odoo_db_name }} --init {{ odoo_role_community_odoo_modules }} --stop-after-init --without-demo=all --logfile=/dev/stdout --log-level=warn"
notify: restart odoo

0 comments on commit f70a253

Please sign in to comment.