https://github.com/joenyland/ansible-docker-role
https://github.com/joenyland/ansible-docker-role
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/joenyland/ansible-docker-role
- Owner: JoeNyland
- Created: 2023-01-08T18:10:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-18T10:12:02.000Z (almost 2 years ago)
- Last Synced: 2025-02-12T19:47:49.348Z (3 months ago)
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
joenyland.docker
================[](https://github.com/JoeNyland/ansible-docker-role/actions/workflows/ci.yml)
Installs [Docker (CE)](https://www.docker.com/).
Requirements
------------None.
Role Variables
--------------### `docker_users`
A list of users who should be able to use Docker on the target hosts.
This adds the requested users to the `docker` group on the target hosts, which allows them to communicate with the Docker daemon without root access.
More info https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
### `docker_daemon_config`
A hash of configuration to be stored in `/etc/docker/daemon.json`.
Allows configuration of the Docker daemon.
E.g.
```yaml
docker_daemon_config:
experimental: true
ipv6: true
ip6tables: true
fixed-cidr-v6: 2001:aaaa:bbbb:ccc::/64
registry-mirrors:
- https://registry.ipv6.docker.com
```Dependencies
------------None.
Example Playbook
----------------```yaml
- hosts: server
roles:
- joenyland.docker
```License
-------MIT
Author Information
------------------⌨️ with ❤️ by [Joe Nyland](https://joe.nyland.io)