1 2 3 4 5 6 7 8 9
--- - include_tasks: Debian.yml when: ansible_os_family | lower == 'debian' - include_tasks: Fedora.yml when: ansible_distribution | lower == 'fedora' - include_tasks: RedHat.yml when: (ansible_os_family | lower == 'redhat') and (ansible_distribution | lower != 'fedora')