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
notify:restart_sshd
-name:permit ssh-rsa
-name:permit ssh-rsa
become:true
become:true
...
@@ -48,4 +48,4 @@
...
@@ -48,4 +48,4 @@
HostKeyAlgorithms +ssh-rsa
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
marker:'#{mark}MyCardInitblock'
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