--- - name: include_tasks configure_firewall.yml include_tasks: configure_firewall.yml when: - configure_firewall - ansible_os_family in ['RedHat', 'Suse'] - name: include_tasks "ntp_debian.yml" include_tasks: "ntp_debian.yml" when: - ansible_os_family == 'Debian' - ntp_service_enabled - name: include_tasks "ntp_rpm.yml" include_tasks: "ntp_rpm.yml" when: - ansible_os_family in ['RedHat', 'Suse'] - ntp_service_enabled