Permalink
Browse files

[FIX] Assert systemd gets reloaded if odoo.service was changed

  • Loading branch information...
eHanseJoerg committed Mar 9, 2018
1 parent e098d5c commit d1b2b1339c7dae02c6099bd9b38afea3b7b2b22b
Showing with 14 additions and 3 deletions.
  1. +5 −0 handlers/main.yml
  2. +9 −3 tasks/service.yml
View
@@ -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'
View
@@ -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

0 comments on commit d1b2b13

Please sign in to comment.