From fc47f86a183bcb7fab73960301feac3bd4b3f82f Mon Sep 17 00:00:00 2001 From: benblasco <42140583+benblasco@users.noreply.github.com> Date: Wed, 31 May 2023 20:23:55 +1000 Subject: [PATCH] Added support for "userns" parameter to "play" module (#577) Co-authored-by: Benjamin Blasco --- plugins/modules/podman_play.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/modules/podman_play.py b/plugins/modules/podman_play.py index beff3c7..04a3044 100644 --- a/plugins/modules/podman_play.py +++ b/plugins/modules/podman_play.py @@ -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"]),