Skip to content

Commit

Permalink
Merge branch 'replace_with_first_found'
Browse files Browse the repository at this point in the history
  • Loading branch information
ElieDeloumeau committed Sep 16, 2021
2 parents 3c6be6e + 79f6a83 commit f4316fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
- name: Gather OS specific variables
include_vars: "{{ loop_vars }}"
with_first_found:
- files:
loop: "{{ query('first_found', params) }}"
vars:
params:
files:
- "{{ ansible_distro }}-{{ ansible_distro_version }}.yml"
- "{{ ansible_distro }}-{{ ansible_distro_release }}.yml"
- "{{ ansible_distro }}-{{ ansible_distro_major_version }}.yml"
Expand Down

0 comments on commit f4316fc

Please sign in to comment.