mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-02-04 07:11:49 +00:00
Add --sdnotify option for container (#465)
Fix #464 Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
parent
9068baeb99
commit
cecb29222e
2 changed files with 9 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ ARGUMENTS_SPEC_CONTAINER = dict(
|
|||
rm=dict(type='bool', aliases=['remove', 'auto_remove']),
|
||||
rootfs=dict(type='bool'),
|
||||
secrets=dict(type='list', elements='str', no_log=True),
|
||||
sdnotify=dict(type='str'),
|
||||
security_opt=dict(type='list', elements='str'),
|
||||
shm_size=dict(type='str'),
|
||||
sig_proxy=dict(type='bool'),
|
||||
|
|
@ -536,6 +537,9 @@ class PodmanModuleParams:
|
|||
def addparam_rootfs(self, c):
|
||||
return c + ['--rootfs=%s' % self.params['rootfs']]
|
||||
|
||||
def addparam_sdnotify(self, c):
|
||||
return c + ['--sdnotify=%s' % self.params['sdnotify']]
|
||||
|
||||
def addparam_secrets(self, c):
|
||||
for secret in self.params['secrets']:
|
||||
c += ['--secret', secret]
|
||||
|
|
|
|||
|
|
@ -679,6 +679,11 @@ options:
|
|||
- If true, the first argument refers to an exploded container on the file
|
||||
system. The default is false.
|
||||
type: bool
|
||||
sdnotify:
|
||||
description:
|
||||
- Determines how to use the NOTIFY_SOCKET, as passed with systemd and Type=notify.
|
||||
Can be container, conmon, ignore.
|
||||
type: str
|
||||
secrets:
|
||||
description:
|
||||
- Add the named secrets into the container.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue