diff --git a/roles/foreman_provisioning/tasks/configure_ubuntu_24_04.yml b/roles/foreman_provisioning/tasks/configure_ubuntu_24_04.yml index c0a493022..ba3e2b441 100644 --- a/roles/foreman_provisioning/tasks/configure_ubuntu_24_04.yml +++ b/roles/foreman_provisioning/tasks/configure_ubuntu_24_04.yml @@ -26,4 +26,4 @@ template_kind: "{{ item.template_kind_name }}" provisioning_template: "{{ item.name }}" state: present - loop: "{{ result.resources | sort(attribute='name') | unique(attribute='template_kind_name') }}" + loop: "{{ result.resources | sort(attribute='name', reverse=True) | unique(attribute='template_kind_name') }}"