Skip to content

Commit

Permalink
Check if environments_variable is defined in service template
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarlr committed Sep 28, 2020
1 parent ce487b2 commit 721a059
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,3 @@ odoo_role_enabled_rest_framework: false

# Support for Queue Job https://github.com/OCA/queue/blob/12.0/queue_job
odoo_role_enable_queue_job: false

environment_variables: {}
2 changes: 1 addition & 1 deletion templates/odoo.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Description=Odoo server

[Service]
ExecStart={{ odoo_role_odoo_python_path }} {{ odoo_role_odoo_bin_path }} -c {{ odoo_role_odoo_config_path }}/odoo.conf
{% if environment_variables %}
{% if environment_variables is defined %}
EnvironmentFile=/etc/default/odoo
{% endif %}

Expand Down

0 comments on commit 721a059

Please sign in to comment.