Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samdoran/ansible-role-docker
Ansible role to install Docker
https://github.com/samdoran/ansible-role-docker
Last synced: 3 days ago
JSON representation
Ansible role to install Docker
- Host: GitHub
- URL: https://github.com/samdoran/ansible-role-docker
- Owner: samdoran
- Created: 2018-09-24T21:57:09.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2022-11-11T18:50:13.000Z (about 2 years ago)
- Last Synced: 2024-11-01T09:14:33.680Z (about 2 months ago)
- Size: 32.2 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Docker
=========
[![Galaxy](https://img.shields.io/badge/galaxy-samdoran.docker-blue.svg?style=flat)](https://galaxy.ansible.com/samdoran/docker)Install Docker CE.
Requirements
------------- `docker` Python SDK installed on managed node
Role Variables
--------------| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `docker_service_name` | `docker` | Service name to start/stop. |
| `docker_group` | `docker` | Name of the group users will be added to in order to be able to run Docker commands |
| `docker_edition` | `ce` | Which Docker editon to install. Options are `ce` or `ee` though only `ce` works currently. |
| `docker_users` | `[]` | List of users to add to `docker_group` |
| `docker_compose_install` | `yes` | Whether or not to install Docker Compose |
| `docker_compose_version` | `1.26.0` | Docker Compose version to install |
| `docker_compose_path` | `/usr/local/bin/docker-compose` | Path to install [Docker Compose](https://docs.docker.com/compose/overview/) binary |
| `docker_yum_repositories` | `[see defaults/main.yml]` | Docker repositories used on RHEL distributions. |
| `docker_daemon_config` | `~` | Dictionary of settings that will be converted to JSON and put in `/etc/docker/daemon.json`. Make sure these options are valid or Docker will fail to start. With the default value, this file will be removed. |Dependencies
------------None
Example Playbook
----------------- hosts: all
roles:
- samdoran.dockerLicense
-------Apache 2.0