1
0
Fork 0
mirror of https://github.com/containers/ansible-podman-collections.git synced 2026-02-04 07:11:49 +00:00

Added support for "userns" parameter to "play" module (#577)

Co-authored-by: Benjamin Blasco <bblasco@redhat.com>
This commit is contained in:
benblasco 2023-05-31 20:23:55 +10:00 committed by GitHub
parent 52911bfc22
commit fc47f86a18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -113,6 +113,13 @@ options:
description:
- Hide image pulls logs from output.
type: bool
userns:
description:
- Set the user namespace mode for all the containers in a pod.
It defaults to the PODMAN_USERNS environment variable.
An empty value ("") means user namespaces are disabled.
required: false
type: str
'''
EXAMPLES = '''
@ -162,6 +169,7 @@ class PodmanKubeManagement:
'--seccomp-profile-root': 'seccomp_profile_root',
'--tls-verify': 'tls_verify',
'--log-level': 'log_level',
'--userns': 'userns',
'--quiet': 'quiet',
}.items():
if self.module.params[param] is not None:
@ -274,6 +282,7 @@ def main():
debug=dict(type='bool'),
quiet=dict(type='bool'),
recreate=dict(type='bool'),
userns=dict(type='str'),
log_level=dict(
type='str',
choices=["debug", "info", "warn", "error", "fatal", "panic"]),