determination dist version fixed
This commit is contained in:
parent
dcb1c3d037
commit
2457fb76ee
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue