https://github.com/ricsanfre/ansible-role-docker
Docker Ansible Role. It intalls docker and docker-compose
https://github.com/ricsanfre/ansible-role-docker
ansible docker docker-compose role ubuntu
Last synced: 2 months ago
JSON representation
Docker Ansible Role. It intalls docker and docker-compose
- Host: GitHub
- URL: https://github.com/ricsanfre/ansible-role-docker
- Owner: ricsanfre
- License: mit
- Created: 2021-08-09T14:25:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-21T12:00:13.000Z (over 1 year ago)
- Last Synced: 2025-03-21T15:51:28.847Z (over 1 year ago)
- Topics: ansible, docker, docker-compose, role, ubuntu
- Homepage: https://galaxy.ansible.com/ricsanfre/docker
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Docker Role
=========
[](https://github.com/ricsanfre/ansible-role-docker/actions/workflows/ci.yml)
Install and configure Docker on Linux.
Requirements
------------
None
Role Variables
--------------
Available variables are listed below along with default values (see `defaults\main.yaml`)
docker_users: []
A list of system users to be added to the docker group (so they can use Docker on the server without root priveges).
```yml
docker_users:
- user1
- user2
```
docker_daemon_options: {}
Custom dockerd options can be configured through this dictionary representing the json file /etc/docker/daemon.json.
```yml
docker_daemon_options:
exec-options: "["native.cgroupdriver=systemd"]"
storage-driver: "overlay"
log-driver: "json-file"
log-opts:
max-size: "100m"
data-root: "/data/docker"
```
Dependencies
------------
None
Example Playbook
----------------
```
---
- hosts: docker
vars:
ansible_user: ansible
ansible_become: yes
roles:
- docker
```
License
-------
MIT/BSD
Author Information
------------------
Ricardo Sanchez (ricsanfre)