Skip to content

Commit

Permalink
[FIX] Assert systemd gets reloaded if odoo.service was changed
Browse files Browse the repository at this point in the history
  • Loading branch information
eHanseJoerg committed Mar 11, 2018
1 parent e098d5c commit d1b2b13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 5 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
12 changes: 9 additions & 3 deletions tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit d1b2b13

Please sign in to comment.