-
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 #7 from ninthnails/master
yum repo URL defaults and apt module
- Loading branch information
Showing
6 changed files
with
48 additions
and
23 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,8 +1,40 @@ | ||
ansible-docker | ||
ansible-docker - Ansible Playbook for Docker | ||
============== | ||
|
||
Docker Playbook for Ansible | ||
## Overview | ||
|
||
This playbook will install Docker. | ||
The `ansible-docker` role supports the installation and configuration of Docker Engine. It supports Ubuntu and RedHat/Centos. | ||
|
||
## Requirements | ||
|
||
No requirement. | ||
|
||
|
||
## Development | ||
|
||
Changes can be tested by using Vagrant machines configure for this role, see `Vagrantfile`. | ||
|
||
```bash | ||
cd ansible-docker/ | ||
vagrant up {travis|ubuntu|centos7} | ||
vagrant ssh {travis|ubuntu|centos7} | ||
|
||
$ cd roles/ansible-docker/ | ||
$ ansible-playbook -i ci/inventory ci/playbook.yml --connection=local --sudo | ||
|
||
PLAY [localhost] ************************************************************** | ||
|
||
GATHERING FACTS *************************************************************** | ||
ok: [localhost] | ||
|
||
... | ||
|
||
TASK: [command docker run hello-world] **************************************** | ||
changed: [localhost] | ||
|
||
PLAY RECAP ******************************************************************** | ||
localhost : ok=12 changed=1 unreachable=0 failed=0 | ||
``` | ||
|
||
Support open source! | ||
|
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,4 +1,3 @@ | ||
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') }}" | ||
|
||
docker_yum_repo: "https://yum.dockerproject.org/repo/main/{{ ansible_distribution | lower }}/{{ 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
docker_playbook_version: "0.1.3" |