--- - name: Resolve platform configuration ansible.builtin.import_tasks: _resolve_platform.yml - name: Include configuration tasks when: configuration_task.when | default(true) ansible.builtin.include_tasks: "{{ configuration_task.file }}" loop: - file: repositories.yml when: "{{ os_family == 'Debian' }}" - file: banner.yml - file: fstab.yml - file: locales.yml - file: ssh.yml - file: services.yml - file: grub.yml - file: encryption.yml when: "{{ system_cfg.luks.enabled | bool }}" - file: bootloader.yml - file: extras.yml - file: network.yml - file: users.yml - file: sudo.yml - file: selinux.yml when: "{{ os_family == 'RedHat' }}" loop_control: loop_var: configuration_task label: "{{ configuration_task.file }}"