--- - include_tasks: "{{ ansible_os_family | lower }}/{{ task }}.yml" with_list: - packages - firewall - ntp loop_control: loop_var: task - meta: flush_handlers - include_tasks: generic/{{ task }}.yml with_list: - selinux - autocluster - hosts - resolv_conf - ssh - timezone - rsyslog - mount_home loop_control: loop_var: task - meta: flush_handlers