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