determination dist version fixed
This commit is contained in:
parent
dcb1c3d037
commit
2457fb76ee
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# vim: set expandtab tabstop=2 shiftwidth=2:
|
# 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'
|
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["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:
|
block:
|
||||||
- name: sshd_config
|
- name: sshd_config
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
Loading…
Reference in a new issue