arillso.container.docker role – Configure and manage Docker environment using Ansible
Note
This role is part of the arillso.container collection (version 1.0.2).
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 |
|---|---|
Defines the Docker daemon configuration options. |
|
A list of allowed nondistributable artifacts. |
|
Sets the CORS header for the Docker API. |
|
A list of authorization plugins to use with Docker. |
|
Specifies a custom network bridge IP address in CIDR notation. This is used for the default bridge network. |
|
Specifies the network bridge Docker will use. |
|
Configuration options for Docker builds. |
|
Configuration options for build cache garbage collection. |
|
The default amount of build cache storage to keep. |
|
Enables or disables build cache garbage collection. Choices:
|
|
Policies for managing build cache storage. |
|
Whether the policy applies to all build cache. Choices:
|
|
Filters to apply for the policy. |
|
The amount of build cache storage to keep. |
|
Sets the parent cgroup for all containers. |
|
The path to the containerd socket. |
|
The namespace to use within containerd. |
|
The namespace for containerd plugins. |
|
The root directory of the Docker runtime. Defaults to /var/lib/docker. |
|
Enable debug mode with additional logging. Choices:
|
|
A list of IP address pools for dynamic network allocation. Each pool is specified with a base (in CIDR notation) and a size. |
|
The base address in CIDR notation. |
|
The size of the network pool. |
|
The default namespace mode to use for cgroups. |
|
The default IPv4 gateway. |
|
The default IPv6 gateway. |
|
Default network options. |
|
The default runtime to use for running containers. |
|
The default size of the shm for containers. |
|
Default ulimits to set for containers. |
|
Disables the use of the legacy V1 Docker registry. Choices:
|
|
A list of DNS servers. |
|
A list of DNS options. |
|
A list of DNS search domains. |
|
Runtime execution options. |
|
The root directory for execution state files. |
|
Enable experimental features. Choices:
|
|
A map of Docker daemon feature flags. |
|
IPv4 subnet for fixed IPs. |
|
IPv6 subnet for fixed IPs. |
|
The group for the Docker socket. |
|
The host gateway IP address. |
|
A list of daemon host addresses. |
|
Enable or disable inter-container communication. Choices:
|
|
Use Docker’s init system. Choices:
|
|
Path to the Docker init binary. |
|
A list of insecure registries to allow for Docker pull and push operations. |
|
The IP address Docker will bind to. |
|
Enable net.ipv4.ip_forward. Choices:
|
|
Enable IP masquerading. Choices:
|
|
Enable addition of ip6tables rules. Choices:
|
|
Enable addition of iptables rules. Choices:
|
|
Enable IPv6 networking. Choices:
|
|
A list of labels to set on the Docker daemon. |
|
Enables live restore of Docker when true. Choices:
|
|
Defines the log driver to be used by Docker daemon. Default: |
|
The logging level. Valid values are “debug”, “info”, “warn”, “error”, “fatal”. |
|
Sets the maximum number of parallel image downloads for the Docker daemon. |
|
Sets the maximum number of parallel image uploads for the Docker daemon. |
|
Sets the maximum transmission unit (MTU) for the Docker daemon network interfaces. |
|
Set no-new-privileges by default for new containers. Choices:
|
|
Adjust the OOM score. |
|
Path to the PID file. |
|
Enable raw logs. Choices:
|
|
A list of registry mirrors to use for Docker pull operations. |
|
Specifies OCI compliant runtimes to use for running containers. |
|
The path to the seccomp security profile. |
|
Enable SELinux support. Choices:
|
|
Sets the timeout value (in seconds) for the Docker daemon to wait before forcibly shutting down containers on daemon shutdown. |
|
The storage driver to use. Popular options include overlay2, aufs, and btrfs. |
|
Set default swarm advertise address. |
|
Trust certs signed only by this CA. |
|
Path to TLS certificate file. |
|
Path to TLS key file. |
|
Use userland proxy for loopback traffic. Choices:
|
|
Path to the userland proxy binary. |
|
User/Group setting for user namespaces. |
|
List of systemd units to create for Docker pruning tasks. |
|
The name of the systemd unit. |
|
Generic systemd options for the unit. |
|
Install options for the systemd unit. |
|
Specific options for the systemd service or timer. |
|
The type of the systemd unit, e.g., service or timer. |
|
Specifies the version of Docker to be installed. If omitted, the latest version is installed. Default: |