mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2024-11-18 19:10:43 +01:00
Add OS specific variable overrides.
Specifically Alpine official repo uses `docker` rather than `docker-ce` or `docker-ee`
This commit is contained in:
parent
eeef0c0082
commit
e60f04337d
@ -1,4 +1,14 @@
|
||||
---
|
||||
- name: Load OS specific package information
|
||||
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