- include_tasks: test_swarm_service.yml when: - ansible_os_family != 'RedHat' or ansible_distribution_major_version != '6' - ansible_distribution != 'Fedora' or ansible_distribution_major_version|int >= 26