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

generate_systemd: implement --wants, --after and --requires (GH-431) (#432)

* generate_systemd: implement --wants, --after and --requires (GH-431)

Signed-off-by: dada513 <dada513@protonmail.com>
Signed-off-by: Sagi Shnaidman <sshnaidm@redhat.com>
Co-authored-by: Sagi Shnaidman <sshnaidm@redhat.com>
This commit is contained in:
dada513 2022-09-01 19:28:07 +02:00 committed by GitHub
parent befb381194
commit b72a026328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 71 additions and 3 deletions

View file

@ -726,7 +726,10 @@ class PodmanPodManager:
if self.module.params['debug'] or self.module_params['debug']:
self.results.update({'podman_version': self.pod.version})
self.results.update(
{'podman_systemd': generate_systemd(self.module, self.module_params, self.name)})
{'podman_systemd': generate_systemd(self.module,
self.module_params,
self.name,
self.pod.version)})
def execute(self):
"""Execute the desired action according to map of actions & states."""