mysql: properly reload systemd

This commit is contained in:
Jérémy Lecour 2018-04-15 23:58:31 +02:00
parent 48dad83c4f
commit ae6e376048
4 changed files with 11 additions and 4 deletions

View file

@ -17,6 +17,7 @@ The **patch** part changes incrementally at each release.
### Fixed ### Fixed
* mysql: use check_mode for apg command (Fix --check) * mysql: use check_mode for apg command (Fix --check)
* mysql/mysql-oracle: properly reload systemd
* packweb-apache: use check_mode for apg command (Fix --check) * packweb-apache: use check_mode for apg command (Fix --check)
### Security ### Security

View file

@ -15,7 +15,8 @@
state: restarted state: restarted
- name: reload systemd - name: reload systemd
command: systemctl daemon-reload systemd:
daemon_reload: yes
- name: Restart minifirewall - name: Restart minifirewall
command: /etc/init.d/minifirewall restart command: /etc/init.d/minifirewall restart

View file

@ -15,5 +15,5 @@
state: restarted state: restarted
- name: reload systemd - name: reload systemd
command: systemctl daemon-reload systemd:
daemon_reload: yes

View file

@ -35,4 +35,9 @@
src: mariadb.systemd.j2 src: mariadb.systemd.j2
dest: /etc/systemd/system/mariadb.service.d/evolinux.conf dest: /etc/systemd/system/mariadb.service.d/evolinux.conf
force: yes force: yes
notify: reload systemd register: mariadb_systemd_override
- name: reload systemd
systemd:
daemon_reload: yes
when: mariadb_systemd_override.changed