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:
parent
52911bfc22
commit
fc47f86a18
1 changed files with 9 additions and 0 deletions
|
|
@ -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"]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue