Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/boutetnico/ansible-role-docker
- Owner: boutetnico
- License: mit
- Created: 2024-07-24T11:30:06.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-08-05T14:44:36.000Z (3 months ago)
- Last Synced: 2024-09-30T02:23:47.274Z (about 1 month ago)
- Topics: ansible, debian, docker-compose, moby, ubuntu
- Language: Jinja
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-dockerTesting
-------## 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-2404License
-------MIT
Author Information
------------------[@boutetnico](https://github.com/boutetnico)