Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days ago
JSON representation
minimal ansible role to install docker on a ubuntu host
- Host: GitHub
- URL: https://github.com/ecshreve/ansible-role-docker
- Owner: ecshreve
- Created: 2023-06-02T20:24:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-27T17:35:57.000Z (over 1 year ago)
- Last Synced: 2024-12-06T09:41:53.292Z (2 months ago)
- Topics: ansible, ansible-galaxy, ansible-role, docker
- Homepage: https://galaxy.ansible.com/ecshreve/docker
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)