--- - name: Verify Middleware Apache hosts: all become: true gather_facts: false vars: mw_apache_bin: 'httpd' mw_apache_pkg: 'httpd' tasks: - name: Verify Middleware Apache package presence ansible.builtin.debug: msg: "Middleware Apache package is present on this host." when: - mw_apache_is_installed | bool - name: Verify Middleware Apache process is running ansible.builtin.debug: msg: "Middleware Apache process is running." when: - mw_apache_is_running | bool - name: Verify configuration files ansible.builtin.import_tasks: verify-configs.yml when: - mw_apache_is_installed | bool - mw_apache_is_running | bool