ansible-playbooks
ansible-playbooks copied to clipboard
Only restart Apache2 and Icinga2 when necessary
The web2 Playbook restarts Apache2 and Icinga2 everytime the Playbook runs. (around line 70 in icinga2-ansible-web2-ui/tasks/icinga2_web2_ui_Debian_install.yml). Another Icinga2 is triggered earlier as well, which might lead to yet another restart once the Playbook finished.
Looking at the code, it is not entirely clear why Apache2 is restarted, all the changed happen in the database and not the webserver configuration.
Looking at the code, the web server restart does seem redundant,I'll investigate further.
regarding the icinga2 service restart, I'll look at improving the code.