mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-09-26 17:51:03 +02:00
Fixes #141, Add support to Amazon Linux
This commit is contained in:
parent
5afc0f8ab4
commit
e697edb533
@ -1,6 +1,15 @@
|
||||
---
|
||||
- name: Include distribution-specific variables
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ ansible_distribution }}.yml"
|
||||
- default.yml
|
||||
|
||||
- include_tasks: setup-RedHat.yml
|
||||
when: ansible_os_family == 'RedHat'
|
||||
when: ansible_os_family == 'RedHat' and ansible_distribution != 'Amazon'
|
||||
|
||||
- include_tasks: setup-Amazon.yml
|
||||
when: ansible_os_family == 'RedHat' and ansible_distribution == 'Amazon'
|
||||
|
||||
- include_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
4
tasks/setup-Amazon.yml
Normal file
4
tasks/setup-Amazon.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
- name: Enable Amazon Linux Extras Docker repository
|
||||
command: amazon-linux-extras enable docker # noqa 301
|
||||
changed_when: false
|
2
vars/Amazon.yml
Normal file
2
vars/Amazon.yml
Normal file
@ -0,0 +1,2 @@
|
||||
---
|
||||
docker_package: "docker"
|
1
vars/default.yml
Normal file
1
vars/default.yml
Normal file
@ -0,0 +1 @@
|
||||
---
|
Loading…
Reference in New Issue
Block a user