# main.yml
---
- include: check_openshift.yml
  when: openshift_host is defined and openshift_host != ''

- include: check_docker.yml
  when: openshift_host is not defined or openshift_host == ''

# main.yml
---
- include_tasks: check_openshift.yml
  when: openshift_host is defined and openshift_host != ''

- include_tasks: check_docker.yml
  when: openshift_host is not defined or openshift_host == ''

Replace deprecated "include" with "include_tasks"
Replace deprecated "include" with "include_tasks"
