when:ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22
when:ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22 or ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 12
notify:restart_sshd
-name:permit ssh-rsa
become:true
...
...
@@ -48,4 +48,4 @@
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
marker:'#{mark}MyCardInitblock'
when:ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22
when:ansible_distribution == 'Ubuntu' and ansible_distribution_major_version|int >= 22 or ansible_distribution == 'Debian' and ansible_distribution_major_version|int >= 12