diff --git a/handlers/main.yml b/handlers/main.yml index 208ada5..a4f508a 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -5,3 +5,8 @@ name: "{{ odoo_service }}" state: restarted when: odoo_init == True + +- name: Reload Systemd + systemd: + daemon-reload: yes + when: ansible_service_mgr == 'systemd' diff --git a/tasks/service.yml b/tasks/service.yml index 36b7b4f..87e369e 100644 --- a/tasks/service.yml +++ b/tasks/service.yml @@ -17,7 +17,9 @@ force=yes backup=yes when: ansible_service_mgr == 'systemd' - notify: Restart Odoo + notify: + - Reload Systemd + - Restart Odoo when: odoo_install_type == 'standard' - block: @@ -37,7 +39,9 @@ force=yes backup=yes when: ansible_service_mgr == 'systemd' - notify: Restart Odoo + notify: + - Reload Systemd + - Restart Odoo when: odoo_install_type == 'buildout' - block: @@ -57,7 +61,9 @@ force=yes backup=yes when: ansible_service_mgr == 'systemd' - notify: Restart Odoo + notify: + - Reload Systemd + - Restart Odoo when: odoo_install_type == 'pip' - name: Enable Odoo service