debops.docker_service default variables

General configuration

docker_service__domain

The DNS domain used for generating default FQDNs for container services when a custom nginx FQDN is not specified.

docker_service__domain: '{{ ansible_domain }}'
docker_service__data_path

Base directory path on the host for persistent container data. Each service should create its own subdirectory under this path.

docker_service__data_path: '/srv/docker'
docker_service__restart_policy

Default restart policy applied to all containers managed by this role. Can be overridden per service. Supported values: no, always, on-failure, unless-stopped.

docker_service__restart_policy: 'unless-stopped'
docker_service__pull

If True, the role will pull Docker images before creating or updating containers. Can be overridden per service.

docker_service__pull: true
docker_service__templates_path

Absolute path to the role-private template tree on the Ansible Controller, used to locate Jinja templates referenced by config_files.src and config_dir.src. Layout: <path>/by-host/<inventory_hostname>/<service>/.

docker_service__templates_path: '{{ inventory_dir | realpath + "/../docker_service" }}'

Service definitions

These variables define Docker container services managed by this role. See docker_service__services for more details.

docker_service__default_services

List of Docker container services defined by default in the role.

docker_service__default_services: []
docker_service__services

List of Docker container services defined on all hosts in the Ansible inventory.

docker_service__services: []
docker_service__group_services

List of Docker container services defined on hosts in a specific Ansible inventory group.

docker_service__group_services: []
docker_service__host_services

List of Docker container services defined on specific hosts in the Ansible inventory.

docker_service__host_services: []
docker_service__combined_services

Variable which combines all Docker container service lists and is used in role tasks and templates.

docker_service__combined_services: '{{ docker_service__default_services
                                       + docker_service__services
                                       + docker_service__group_services
                                       + docker_service__host_services }}'

Configuration for other Ansible roles

docker_service__python__dependent_packages3

Configuration for the debops.python Ansible role. The python3-docker package is required by the community.docker Ansible collection used to manage containers.

docker_service__python__dependent_packages3:
  - 'python3-docker'
docker_service__postgresql__dependent_roles

Role configuration for the debops.postgresql Ansible role. Populated dynamically by the build_postgresql_vars task file which is included as a pre_task in the playbook.

docker_service__postgresql__dependent_roles: []
docker_service__postgresql__dependent_databases

Database configuration for the debops.postgresql Ansible role. Populated dynamically by the build_postgresql_vars task file which is included as a pre_task in the playbook.

docker_service__postgresql__dependent_databases: []
docker_service__postgresql__dependent_pgpass

The ~/.pgpass configuration for the debops.postgresql Ansible role. Populated dynamically by the build_postgresql_vars task file which is included as a pre_task in the playbook.

docker_service__postgresql__dependent_pgpass: []
docker_service__nginx__dependent_upstreams

Upstream configuration for the debops.nginx Ansible role. Populated dynamically by the build_nginx_vars task file which is included as a pre_task in the playbook. The template lookup must run in the docker_service role context to find the templates.

docker_service__nginx__dependent_upstreams: []
docker_service__nginx__dependent_servers

Server configuration for the debops.nginx Ansible role. Populated dynamically by the build_nginx_vars task file which is included as a pre_task in the playbook. The template lookup must run in the docker_service role context to find the templates.

docker_service__nginx__dependent_servers: []