Normalize booleans in all other plugins and modules. (#440)

This commit is contained in:
Felix Fontein
2022-08-10 21:25:10 +02:00
committed by GitHub
parent 1bf8da2390
commit be58ccc13f
23 changed files with 150 additions and 150 deletions
+16 -16
View File
@@ -24,7 +24,7 @@ options:
description:
- Whether to prune containers.
type: bool
default: no
default: false
containers_filters:
description:
- A dictionary of filter values used for selecting containers to delete.
@@ -36,7 +36,7 @@ options:
description:
- Whether to prune images.
type: bool
default: no
default: false
images_filters:
description:
- A dictionary of filter values used for selecting images to delete.
@@ -48,7 +48,7 @@ options:
description:
- Whether to prune networks.
type: bool
default: no
default: false
networks_filters:
description:
- A dictionary of filter values used for selecting networks to delete.
@@ -59,7 +59,7 @@ options:
description:
- Whether to prune volumes.
type: bool
default: no
default: false
volumes_filters:
description:
- A dictionary of filter values used for selecting volumes to delete.
@@ -70,7 +70,7 @@ options:
description:
- Whether to prune the builder cache.
type: bool
default: no
default: false
extends_documentation_fragment:
- community.docker.docker.api_documentation
@@ -86,28 +86,28 @@ requirements:
EXAMPLES = '''
- name: Prune containers older than 24h
community.docker.docker_prune:
containers: yes
containers: true
containers_filters:
# only consider containers created more than 24 hours ago
until: 24h
- name: Prune everything
community.docker.docker_prune:
containers: yes
images: yes
networks: yes
volumes: yes
builder_cache: yes
containers: true
images: true
networks: true
volumes: true
builder_cache: true
- name: Prune everything (including non-dangling images)
community.docker.docker_prune:
containers: yes
images: yes
containers: true
images: true
images_filters:
dangling: false
networks: yes
volumes: yes
builder_cache: yes
networks: true
volumes: true
builder_cache: true
'''
RETURN = '''