--- - name: Determine if the current distro is supported ansible.builtin.set_fact: docker_distro_supported: "{{ ansible_facts['distribution'] | lower in docker_supported_distros }}" - name: Fail on unsupported distro ansible.builtin.fail: msg: >- {{ ansible_facts['distribution'] }} is not a supported distribution for the docker role. Supported: {{ docker_supported_distros | join(', ') }}. when: - not docker_distro_supported - docker_fail_on_unsupported_distro - name: Notify unsupported distro is being skipped ansible.builtin.debug: msg: >- {{ ansible_facts['distribution'] }} is not supported by the docker role. Skipping Docker installation on this host. when: - not docker_distro_supported - not docker_fail_on_unsupported_distro