mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
Merge pull request #320 from adamus1red/adamus1red/os-vars
Add OS specific variable overrides.
This commit is contained in:
commit
d3fcc22713
@ -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
2
vars/Alpine.yml
Executable file
@ -0,0 +1,2 @@
|
||||
---
|
||||
docker_package: "docker"
|
2
vars/default.yml
Executable file
2
vars/default.yml
Executable file
@ -0,0 +1,2 @@
|
||||
---
|
||||
# Empty file
|
Loading…
Reference in New Issue
Block a user