ez_docker/plugins/module_utils/service/docker_in_docker.py
2025-01-20 18:13:02 +01:00

25 lines
574 B
Python

# Copyright: (c) 2025, Luca Bilke <luca@bil.ke>
# MIT License (see LICENSE)
from __future__ import annotations
from typing import TYPE_CHECKING, Any
if TYPE_CHECKING:
from ansible_collections.snailed.ez_docker.plugins.module_utils.models import State
DOCUMENTATION = """
docker_in_docker:
description:
- Configuration for docker_in_docker service.
type: list
elements: dict
suboptions:
"""
EXTRA_ARGS = {}
def helper(_state: State, _params: dict[str, Any]) -> dict[str, Any]:
return {"privileged": True, "networks": {"internal": {}}}