* 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:
thalunil 2019-09-30 19:57:15 +02:00
parent 454bcb828f
commit 9fedd23cf0

View file

@ -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"