Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 28c7e67

Browse files
committed
[minor] port variables file discovery from OpenStack-Ansible
1 parent 86e74f2 commit 28c7e67

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
- name: Gather variables for each operating system
33
include_vars: "{{ item }}"
44
with_first_found:
5-
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version }}.yml"
6-
- "{{ ansible_distribution | lower }}.yml"
5+
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
6+
- "{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
77
- "{{ ansible_distribution_file_variety | lower }}.yml"
8+
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_major_version | lower }}.yml"
9+
- "{{ ansible_distribution | lower }}.yml"
10+
- "{{ ansible_os_family | lower }}-{{ ansible_distribution_version.split('.')[0] }}.yml"
811
- "{{ ansible_os_family | lower }}.yml"
912
tags:
1013
- node_exporter_install

0 commit comments

Comments
 (0)