extending yaml file lookup with "ansible_distribution_version"

This commit is contained in:
Alexander Christoph Bihlmaier 2019-10-03 15:07:16 +02:00
parent 9fedd23cf0
commit 63095094fc

View file

@ -16,15 +16,12 @@
if ansible_distribution == "Ubuntu" if ansible_distribution == "Ubuntu"
else ansible_distribution_version else ansible_distribution_version
}} }}
ansible_distribution_major_version: >-
{{
ansible_distribution_version if ansible_os_family == "OpenBSD"
}}
params: params:
files: files:
- "{{ ansible_distribution }}_{{ ansible_distribution_lts_version }}.yml" - "{{ ansible_distribution }}_{{ ansible_distribution_lts_version }}.yml"
- "{{ ansible_distribution }}.yml" - "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml" - "{{ ansible_os_family }}_{{ ansible_distribution_major_version }}.yml"
- "{{ ansible_os_family }}_{{ ansible_distribution_version }}.yml"
- "{{ ansible_os_family }}.yml" - "{{ ansible_os_family }}.yml"
- default.yml - default.yml
paths: paths: