Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Install and configure Docker using Ansible.
https://github.com/boutetnico/ansible-role-docker

ansible debian docker-compose moby ubuntu

Last synced: 26 days ago
JSON representation

Install and configure Docker using Ansible.

Awesome Lists containing this project

README

        

[![tests](https://github.com/boutetnico/ansible-role-docker/workflows/Test%20ansible%20role/badge.svg)](https://github.com/boutetnico/ansible-role-docker/actions?query=workflow%3A%22Test+ansible+role%22)
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-boutetnico.docker-blue.svg)](https://galaxy.ansible.com/boutetnico/docker)

ansible-role-docker
===================

This role installs Docker.

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

Ansible 2.15 or newer.

Supported Platforms
-------------------

- [Debian - 11 (Bullseye)](https://wiki.debian.org/DebianBullseye)
- [Debian - 12 (Bookworm)](https://wiki.debian.org/DebianBookworm)
- [Ubuntu - 22.04 (Jammy Jellyfish)](http://releases.ubuntu.com/22.04/)
- [Ubuntu - 24.04 (Noble Numbat)](http://releases.ubuntu.com/24.04/)

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

| Variable | Required | Default | Choices | Comments |
|---------------------------------|----------|----------------------|---------|----------------------------------------------------|
| docker_dependencies | true | | list | See `defaults/main.yml`. |
| docker_packages | true | | list | See `defaults/main.yml`. |
| docker_package_state | true | `present` | string | |
| docker_users | true | `[root]` | list | |
| docker_daemon_flags | true | `[-H unix://]` | list | |
| docker_daemon_json | true | `{}` | dict | |
| docker_cron_jobs | true | | list | See `defaults/main.yml`. |

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

None

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

- hosts: all
roles:
- role: ansible-role-docker

Testing
-------

## Debian

molecule --base-config molecule/shared/base.yml test --scenario-name debian-11
molecule --base-config molecule/shared/base.yml test --scenario-name debian-12

## Ubuntu

molecule --base-config molecule/shared/base.yml test --scenario-name ubuntu-2204
molecule --base-config molecule/shared/base.yml test --scenario-name ubuntu-2404

License
-------

MIT

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

[@boutetnico](https://github.com/boutetnico)