mirror of
https://github.com/willshersystems/ansible-sshd
synced 2025-01-11 01:30:18 +01:00
* OpenBSD 6.5 no longer provides ansible fact "ansible_distribution_major_version" therefore it it set to "ansible_distribution_version".
* ansible fact ansible_distribution_lts_version only makes sense on Ubuntu so set it only on Ubuntu -> otherwise "ansible_distribution_version"
This commit is contained in:
parent
454bcb828f
commit
9fedd23cf0
1 changed files with 11 additions and 3 deletions
|
@ -9,9 +9,17 @@
|
|||
if ansible_distribution == "Ubuntu"
|
||||
else 0
|
||||
}}
|
||||
ansible_distribution_lts_version: '{{
|
||||
ansible_distribution_major_version|int -
|
||||
ansible_distribution_lts_offset|int }}'
|
||||
ansible_distribution_lts_version: >-
|
||||
{{
|
||||
ansible_distribution_major_version|int -
|
||||
ansible_distribution_lts_offset|int
|
||||
if ansible_distribution == "Ubuntu"
|
||||
else ansible_distribution_version
|
||||
}}
|
||||
ansible_distribution_major_version: >-
|
||||
{{
|
||||
ansible_distribution_version if ansible_os_family == "OpenBSD"
|
||||
}}
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_distribution }}_{{ ansible_distribution_lts_version }}.yml"
|
||||
|
|
Loading…
Reference in a new issue