-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ninthnails/master
Add support for Amazon, Fedora, Oracle Linux
- Loading branch information
Showing
10 changed files
with
86 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.vagrant | ||
|
||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,20 @@ | ||
|
||
- name: Install Docker Repository | ||
template: src=docker-repo.j2 dest=/etc/yum.repos.d/docker.repo | ||
|
||
- name: (yum) Install SELinux python bindings | ||
yum: name=libselinux-python state=present | ||
when: ansible_selinux is defined and ansible_pkg_mgr == 'yum' | ||
|
||
- name: Install Docker Engine | ||
yum: name=docker-engine state=present | ||
- name: (yum) Install Docker Engine | ||
yum: name={{ docker_yum_package }} state=present | ||
when: ansible_pkg_mgr == 'yum' | ||
|
||
- name: (dnf) Install SELinux python bindings | ||
dnf: name=libselinux-python state=present | ||
when: ansible_selinux is defined and ansible_pkg_mgr == 'dnf' | ||
|
||
- name: (dnf) Install Docker Engine | ||
dnf: name=docker-engine state=present | ||
when: ansible_pkg_mgr == 'dnf' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
os_version: "{{ ansible_lsb.release if ansible_lsb is defined else ansible_distribution_version }}" | ||
os_version_major: "{{ os_version | regex_replace('^([0-9]+)[^0-9]*.*', '\\\\1') }}" | ||
os_version_major: " | ||
{%- if ansible_distribution_major_version is defined -%} | ||
{{- ansible_distribution_major_version -}} | ||
{%- elif '.' in os_version %} | ||
{{- os_version[:os_version.index('.')] -}} | ||
{%- else -%} | ||
{{- os_version -}} | ||
{%- endif -%} | ||
" | ||
docker_yum_repo_uris: | ||
Amazon: "centos/{{ 6 if '2014' in os_version or ('2015' in os_version and os_version[os_version.index('.'):] | int <= 3) else 7 }}" | ||
CentOS: "centos/{{ os_version_major }}" | ||
Fedora: "fedora/{{ os_version_major }}" | ||
OracleLinux: "oraclelinux/{{ os_version_major }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
docker_playbook_version: "0.1.3" | ||
docker_playbook_version: "0.1.5" |