determination dist version fixed

This commit is contained in:
Denis Knauf 2024-01-14 21:18:42 +01:00
parent 31f431a7ec
commit dcb1c3d037

View file

@ -1,7 +1,7 @@
---
# vim: set expandtab tabstop=2 shiftwidth=2:
- when: '"debian" == ansible_facts["os_family"]|lower and 12 <= ansible_facts["os_version_id"]'
- when: '"debian" == ansible_facts["ansible_distribution"]|lower and 12 <= ansible_facts["ansible_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["os_family"]|lower or 11 >= ansible_facts["os_version_id"]'
- when: '"debian" != ansible_facts["ansible_distribution"]|lower or 11 >= ansible_facts["ansible_distribution_version"]|int'
block:
- name: sshd_config
lineinfile: