Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ecshreve/ansible-role-docker

minimal ansible role to install docker on a ubuntu host
https://github.com/ecshreve/ansible-role-docker

ansible ansible-galaxy ansible-role docker

Last synced: 2 days ago
JSON representation

minimal ansible role to install docker on a ubuntu host

Awesome Lists containing this project

README

        

ansible role ecshreve.docker
=========

[![Galaxy Release](https://github.com/ecshreve/ansible-role-docker/actions/workflows/galaxy-release.yml/badge.svg)](https://github.com/ecshreve/ansible-role-docker/actions/workflows/galaxy-release.yml)

minimal role to install docker on a ubuntu host

Requirements
------------

None

Dependencies
------------

None

Role Variables
--------------

```yaml
docker_ce_package: "docker-ce"
```
The name of the docker package to install. This can be used to install a specific version of docker.

```yaml
docker_daemon_options: {}
```
Custom `dockerd` options can be configured through this dictionary representing the json file `/etc/docker/daemon.json`.

```yaml
manage_docker_service: true
```
Whether or not to manage the docker service. If set to `false`, the docker service will not be restarted when the configuration changes.

Example Playbook
----------------

```yaml
- hosts: all
vars:
docker_ce_package: "docker-ce=5:23.0.1-1~ubuntu.20.04~focal"
manage_docker_service: true
docker_daemon_options:
insecure-registries:
- "registry.example.com"
- "registry.example.com:5000"
roles:
- ecshreve.docker
```

License
-------

MIT

Author Information
------------------

This role was created in 2023 by [Eric Shreve](github.com/eshreve)