Merge pull request #320 from adamus1red/adamus1red/os-vars

Add OS specific variable overrides.
This commit is contained in:
Jeff Geerling 2022-08-19 14:09:16 -05:00 committed by GitHub
commit d3fcc22713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,15 @@
---
- name: Load OS-specific vars.
include_vars: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- '{{ansible_distribution}}.yml'
- '{{ansible_os_family}}.yml'
- default.yml
paths:
- 'vars'
- include_tasks: setup-RedHat.yml
when: ansible_os_family == 'RedHat'

2
vars/Alpine.yml Executable file
View File

@ -0,0 +1,2 @@
---
docker_package: "docker"

2
vars/default.yml Executable file
View File

@ -0,0 +1,2 @@
---
# Empty file