determination dist version fixed

This commit is contained in:
Denis Knauf 2024-01-14 21:35:06 +01:00
parent dcb1c3d037
commit 2457fb76ee

View file

@ -1,7 +1,7 @@
---
# vim: set expandtab tabstop=2 shiftwidth=2:
- when: '"debian" == ansible_facts["ansible_distribution"]|lower and 12 <= ansible_facts["ansible_distribution_version"]|int'
- when: '"debian" == ansible_facts["distribution"]|lower and 12 <= ansible_facts["distribution_version"]|int'
name: 'sshd_config.d/99-default.conf'
template:
src: 'sshd-default.conf'
@ -9,7 +9,7 @@
owner: root
group: root
mode: 0644
- when: '"debian" != ansible_facts["ansible_distribution"]|lower or 11 >= ansible_facts["ansible_distribution_version"]|int'
- when: '"debian" != ansible_facts["distribution"]|lower or 11 >= ansible_facts["distribution_version"]|int'
block:
- name: sshd_config
lineinfile: