--- - name: Ensure Nagios is installed include_tasks: install.yml - name: Ensure Nagios is configured include_tasks: configure.yml - name: Ensure Apache is configured for Nagios include_tasks: configure_apache.yml when: configure_apache