determination dist version fixed
This commit is contained in:
parent
31f431a7ec
commit
dcb1c3d037
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# vim: set expandtab tabstop=2 shiftwidth=2:
|
# 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'
|
name: 'sshd_config.d/99-default.conf'
|
||||||
template:
|
template:
|
||||||
src: 'sshd-default.conf'
|
src: 'sshd-default.conf'
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
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:
|
block:
|
||||||
- name: sshd_config
|
- name: sshd_config
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue