Ansible - 2.4
With below snippet, service failed to start at remote host but ansible reports that lighttpd service has been restarted and ok.
################
- name: lighttpd config file
template:
src: lighttpd.conf.j2
dest: /etc/lighttpd/lighttpd.conf
owner: root
group: root
mode: 0644
notify: Restart lighttpd
handlers:
- name: Restart lighttpd
become: true
service: name=lighttpd state=restarted
############
Note: It's happening with lighttpd only.
RUNNING HANDLER [Restart lighttpd] ***********************************************************************************************************************************************************
changed: [HOSTNAME]