From 5596b9a1f98c53179b638182f7c8be912aefdb52 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Fri, 3 Feb 2023 15:55:39 +0100 Subject: [PATCH] Improve current_container_facts docs. --- plugins/modules/current_container_facts.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/modules/current_container_facts.py b/plugins/modules/current_container_facts.py index 99f9b8ec..644bfc35 100644 --- a/plugins/modules/current_container_facts.py +++ b/plugins/modules/current_container_facts.py @@ -12,10 +12,10 @@ __metaclass__ = type DOCUMENTATION = r''' --- module: current_container_facts -short_description: Return facts about whether the module runs in a Docker container +short_description: Return facts about whether the module runs in a container version_added: 1.1.0 description: - - Return facts about whether the module runs in a Docker container. + - Return facts about whether the module runs in a Docker or podman container. - This module attempts a best-effort detection. There might be special cases where it does not work; if you encounter one, L(please file an issue, https://github.com/ansible-collections/community.docker/issues/new?assignees=&labels=&template=bug_report.md). @@ -58,8 +58,10 @@ ansible_facts: description: - The detected container environment. - Contains an empty string if no container was detected, or a non-empty string identifying the container environment. - - C(github_actions) is supported since community.docker 2.4.0. - - C(podman) is supported since community.docker 3.3.0. + - C(docker) indicates that the module ran inside a regular Docker container. + - C(azure_pipelines) indicates that the module ran inside a Docker containers on Azure Pipelines. + - C(github_actions) indicates that the module ran inside a Docker on GitHub Actions. It is supported since community.docker 2.4.0. + - C(podman) indicates that the module ran inside a regular Podman container. It is supported since community.docker 3.3.0. returned: always type: str choices: