--- - name: include check_running_containers.yml include_tasks: check_running_containers.yml when: containerized_deployment | bool - name: include check_socket_non_container.yml include_tasks: check_socket_non_container.yml when: not containerized_deployment | bool