mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
parent
65e331bca0
commit
a50640caa7
2 changed files with 8 additions and 4 deletions
|
|
@ -53,7 +53,7 @@ ARGUMENTS_SPEC_CONTAINER = dict(
|
|||
'exposed', 'exposed_ports']),
|
||||
force_restart=dict(type='bool', default=False,
|
||||
aliases=['restart']),
|
||||
gidmap=dict(type='str'),
|
||||
gidmap=dict(type='list', elements='str'),
|
||||
group_add=dict(type='list', aliases=['groups']),
|
||||
healthcheck=dict(type='str'),
|
||||
healthcheck_interval=dict(type='str'),
|
||||
|
|
@ -116,7 +116,7 @@ ARGUMENTS_SPEC_CONTAINER = dict(
|
|||
systemd=dict(type='bool'),
|
||||
tmpfs=dict(type='dict'),
|
||||
tty=dict(type='bool'),
|
||||
uidmap=dict(type='list'),
|
||||
uidmap=dict(type='list', elements='str'),
|
||||
ulimit=dict(type='list', aliases=['ulimits']),
|
||||
user=dict(type='str'),
|
||||
userns=dict(type='str', aliases=['userns_mode']),
|
||||
|
|
@ -323,7 +323,9 @@ class PodmanModuleParams:
|
|||
return c
|
||||
|
||||
def addparam_gidmap(self, c):
|
||||
return c + ['--gidmap', self.params['gidmap']]
|
||||
for gidmap in self.params['gidmap']:
|
||||
c += ['--gidmap', gidmap]
|
||||
return c
|
||||
|
||||
def addparam_group_add(self, c):
|
||||
for g in self.params['group_add']:
|
||||
|
|
|
|||
|
|
@ -286,7 +286,8 @@ options:
|
|||
gidmap:
|
||||
description:
|
||||
- Run the container in a new user namespace using the supplied mapping.
|
||||
type: str
|
||||
type: list
|
||||
elements: str
|
||||
group_add:
|
||||
description:
|
||||
- Add additional groups to run as
|
||||
|
|
@ -643,6 +644,7 @@ options:
|
|||
description:
|
||||
- Run the container in a new user namespace using the supplied mapping.
|
||||
type: list
|
||||
elements: str
|
||||
ulimit:
|
||||
description:
|
||||
- Ulimit options
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue