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

Convert systemd option to a string

And set it to lower to workaround bugs in 3.0.1
This commit is contained in:
Sagi Shnaidman 2021-02-10 19:25:05 +02:00 committed by Sergey
parent 885af0c7c5
commit e4f5a8eabe
2 changed files with 3 additions and 3 deletions

View file

@ -114,7 +114,7 @@ ARGUMENTS_SPEC_CONTAINER = dict(
subgidname=dict(type='str'),
subuidname=dict(type='str'),
sysctl=dict(type='dict'),
systemd=dict(type='bool'),
systemd=dict(type='str'),
tmpfs=dict(type='dict'),
tty=dict(type='bool'),
uidmap=dict(type='list', elements='str'),
@ -504,7 +504,7 @@ class PodmanModuleParams:
return c
def addparam_systemd(self, c):
return c + ['--systemd=%s' % self.params['systemd']]
return c + ['--systemd=%s' % str(self.params['systemd']).lower()]
def addparam_tmpfs(self, c):
for tmpfs in self.params['tmpfs'].items():

View file

@ -635,7 +635,7 @@ options:
systemd:
description:
- Run container in systemd mode. The default is true.
type: bool
type: str
tmpfs:
description:
- Create a tmpfs mount. For example tmpfs