Merge pull request #115 from thalunil/master

OpenBSD and ansible_distribution_major_version
This commit is contained in:
Matt Willsher 2020-09-18 21:58:11 +01:00 committed by GitHub
commit 9e79cc3802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,14 +8,18 @@
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
}}
params:
files:
- "{{ ansible_distribution }}_{{ ansible_distribution_lts_version }}.yml"
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}_{{ ansible_distribution_version }}.yml"
- "{{ ansible_os_family }}.yml"
- default.yml
paths: