when:not upgrade or ansible_distribution_release == 'sid' or keep_distro
-name:move to noble
when:not upgrade or ansible_distribution_release == 'sid' or keep_distro or (ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 24)
-name:move to jammy
set_fact:
target_distribution:'noble'
when:ansible_distribution == 'Ubuntu' and upgrade and not keep_distro
target_distribution:'jammy'
when:ansible_distribution == 'Ubuntu' and upgrade and not keep_distro and ansible_distribution_major_version|int < 24