Drop support for docker-py. (#1171)

This commit is contained in:
Felix Fontein
2025-10-15 21:55:07 +02:00
committed by GitHub
parent 0646e52bae
commit 3ff2cfe615
8 changed files with 16 additions and 75 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ description:
- This module allows to change the node's role, its availability, and to modify, add or remove node labels.
extends_documentation_fragment:
- community.docker._docker
- community.docker._docker.docker_py_1_documentation
- community.docker._docker.docker_py_2_documentation
- community.docker._attributes
- community.docker._attributes.actiongroup_docker
+1 -1
View File
@@ -18,7 +18,7 @@ description:
- Must be executed on a host running as Swarm Manager, otherwise the module will fail.
extends_documentation_fragment:
- community.docker._docker
- community.docker._docker.docker_py_1_documentation
- community.docker._docker.docker_py_2_documentation
- community.docker._attributes
- community.docker._attributes.actiongroup_docker
- community.docker._attributes.info_module
+3 -3
View File
@@ -15,7 +15,7 @@ description:
- Add/Remove nodes or managers to an existing cluster.
extends_documentation_fragment:
- community.docker._docker
- community.docker._docker.docker_py_1_documentation
- community.docker._docker.docker_py_2_documentation
- community.docker._attributes
- community.docker._attributes.actiongroup_docker
@@ -198,7 +198,7 @@ options:
version_added: 3.1.0
requirements:
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.10.0"
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.0.0"
- Docker API >= 1.25
author:
- Thierry Bouvet (@tbouvet)
@@ -724,7 +724,7 @@ def main():
argument_spec=argument_spec,
supports_check_mode=True,
required_if=required_if,
min_docker_version="1.10.0",
min_docker_version="2.0.0",
option_minimal_versions=option_minimal_versions,
)
sanitize_labels(client.module.params["labels"], "labels", client)
+3 -3
View File
@@ -24,7 +24,7 @@ author:
extends_documentation_fragment:
- community.docker._docker
- community.docker._docker.docker_py_1_documentation
- community.docker._docker.docker_py_2_documentation
- community.docker._attributes
- community.docker._attributes.actiongroup_docker
- community.docker._attributes.info_module
@@ -83,7 +83,7 @@ options:
default: false
requirements:
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 1.10.0"
- "L(Docker SDK for Python,https://docker-py.readthedocs.io/en/stable/) >= 2.0.0"
- "Docker API >= 1.25"
"""
@@ -366,7 +366,7 @@ def main():
client = AnsibleDockerSwarmClient(
argument_spec=argument_spec,
supports_check_mode=True,
min_docker_version="1.10.0",
min_docker_version="2.0.0",
option_minimal_versions=option_minimal_versions,
fail_results={
"can_talk_to_docker": False,
+1 -1
View File
@@ -18,7 +18,7 @@ description:
- Must be executed on a host running as Swarm Manager, otherwise the module will fail.
extends_documentation_fragment:
- community.docker._docker
- community.docker._docker.docker_py_1_documentation
- community.docker._docker.docker_py_2_documentation
- community.docker._attributes
- community.docker._attributes.actiongroup_docker
- community.docker._attributes.info_module