when:ansible_distribution == 'Debian' or ansible_distribution_major_version|int >= 20
when:ansible_distribution == 'Debian' or ansible_distribution_major_version|int >= 20
-name:non-focal packages
-name:python-is-python3
become:true
apt:
name:python-setuptools,python-dev,python-pip
when:ansible_distribution_major_version|int < 20 and ansible_distribution_release != 'sid'
-name:focal packages
become:true
become:true
apt:
apt:
name:python-is-python3
name:python-is-python3
when:ansible_distribution_major_version|int >= 20
when:(ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 20) or (ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 11)