buluma.docker_ce
Ansible Role docker_ce
This role installs and sets up Docker CE on your system.
GitHub | Version | Issues | Pull Requests | Downloads |
---|---|---|---|---|
Example Playbook
Here's a simple playbook example from molecule/default/converge.yml
. It is tested on every change to the code.
---
- name: Converge
hosts: all
become: yes
gather_facts: yes
roles:
- role: buluma.docker_ce
docker_ce_privileged_users:
- woody
- buzz
Before running this, make sure your machine is prepared. In CI, this is done with molecule/default/prepare.yml
:
---
- name: Prepare
hosts: all
gather_facts: no
become: yes
roles:
- role: buluma.bootstrap
- role: buluma.epel
- role: buluma.buildtools
- role: buluma.python_pip
- role: buluma.core_dependencies
tasks:
- name: Create test case users
ansible.builtin.user:
name: "{{ user }}"
loop:
- woody
- buzz
loop_control:
loop_var: user
For more details, see a full explanation and example on using these roles.
Role Variables
Default variable values are set in defaults/main.yml
:
---
# defaults file for docker_ce
# Add users to the privileged docker group, like so:
# docker_ce_privileged_users:
# - UserA
# - UserB
docker_ce_privileged_users: []
Requirements
- Python packages listed in requirements.txt.
State of used roles
The following roles are used to set up your system, but you can prepare it differently if needed.
Requirement | GitHub | Version |
---|---|---|
buluma.bootstrap | ||
buluma.buildtools | ||
buluma.core_dependencies | ||
buluma.epel | ||
buluma.python_pip |
Context
This role is part of a group of compatible roles. Check out their documentation for more info.
Here's a quick overview of related roles:
Compatibility
This role has been tested with these container images:
Container | Tags |
---|---|
Debian | bullseye |
EL | 9 |
Fedora | 39, 38, 40 |
Ubuntu | jammy, focal, bionic, noble, lunar |
You need at least Ansible version 2.12. Tests have been conducted on:
- Previous version.
- Current version.
- Development version.
If you come across issues, please report them on GitHub.
Changelog
Find the Role History here.
License
This project is licensed under Apache-2.0.
Author Information
Created by Shadow Walker.
ansible-galaxy install buluma.docker_ce