arillso.container.docker role – Configure and manage Docker environment using Ansible

Note

This role is part of the arillso.container collection (version 0.0.7).

It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it use: ansible-galaxy collection install arillso.container.

To use it in a playbook, specify: arillso.container.docker.

Entry point main – Configure and manage Docker environment using Ansible

Synopsis

  • This spec defines the parameters for configuring Docker and its environment on various distributions using Ansible.

Parameters

Parameter

Comments

docker_daemon

dictionary

Defines the Docker daemon configuration options.

data-root

string

The root directory of the Docker runtime. Defaults to /var/lib/docker.

debug

boolean

Enable debug mode with additional logging.

Choices:

  • false

  • true

default-runtime

string

The default runtime to use for running containers.

default-ulimits

dictionary

Default ulimits to set for containers.

exec-opts

list / elements=string

Runtime execution options.

experimental

boolean

Enable experimental features.

Choices:

  • false

  • true

insecure-registries

list / elements=string

A list of insecure registries to allow for Docker pull and push operations.

live-restore

boolean

Enables live restore of Docker when true.

Choices:

  • false

  • true ← (default)

log-driver

string

Defines the log driver to be used by Docker daemon.

Default: "journald"

log-level

string

The logging level. Valid values are “debug”, “info”, “warn”, “error”, “fatal”.

registry-mirrors

list / elements=string

A list of registry mirrors to use for Docker pull operations.

storage-driver

string

The storage driver to use. Popular options include overlay2, aufs, and btrfs.

docker_systemd_units

list / elements=dictionary

List of systemd units to create for Docker pruning tasks.

name

string

The name of the systemd unit.

systemd_unit_generic_options

list / elements=string

Generic systemd options for the unit.

systemd_unit_install_options

list / elements=string

Install options for the systemd unit.

systemd_unit_options

list / elements=string

Specific options for the systemd service or timer.

type

string

The type of the systemd unit, e.g., service or timer.

docker_version

string

Specifies the version of Docker to be installed. If omitted, the latest version is installed.

Default: ""