ansible-playbooks icon indicating copy to clipboard operation
ansible-playbooks copied to clipboard

Only restart Apache2 and Icinga2 when necessary

Open andreasscherbaum opened this issue 7 years ago • 1 comments

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.

andreasscherbaum avatar May 14 '17 23:05 andreasscherbaum

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.

aflatto avatar Sep 07 '17 10:09 aflatto