Add OS specific variable overrides.

Specifically Alpine official repo uses `docker` rather than `docker-ce` or `docker-ee`
This commit is contained in:
adamus1red 2021-12-31 15:29:52 +00:00
parent eeef0c0082
commit e60f04337d
3 changed files with 14 additions and 0 deletions

View File

@ -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
View File

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

2
vars/default.yml Executable file
View File

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