mirror of
https://github.com/Maks1mS/ansible-role-docker.git
synced 2024-12-23 16:22:59 +03: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