From e6d2e86e3566674f408aa5a08f58284a06b9ac28 Mon Sep 17 00:00:00 2001 From: zephyros <67867662+zephyros-dev@users.noreply.github.com> Date: Fri, 19 Nov 2021 21:04:06 +0700 Subject: [PATCH] Add documentations for generate_systemd (#336) --- plugins/modules/podman_container.py | 2 +- plugins/modules/podman_pod.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/modules/podman_container.py b/plugins/modules/podman_container.py index 7071f4b..96f547d 100644 --- a/plugins/modules/podman_container.py +++ b/plugins/modules/podman_container.py @@ -300,7 +300,7 @@ options: path: description: - Specify a path to the directory where unit files will be generated. - If it doesn't exist, the directory will be created. + Required for this option. If it doesn't exist, the directory will be created. type: str required: false restart_policy: diff --git a/plugins/modules/podman_pod.py b/plugins/modules/podman_pod.py index ba77c25..8bc8b41 100644 --- a/plugins/modules/podman_pod.py +++ b/plugins/modules/podman_pod.py @@ -80,7 +80,7 @@ options: path: description: - Specify a path to the directory where unit files will be generated. - If it doesn't exist, the directory will be created. + Required for this option. If it doesn't exist, the directory will be created. type: str required: false restart_policy: @@ -131,6 +131,13 @@ options: container/pod and the prefix. The default is "-" (dash). type: str required: false + new: + description: + - Create containers and pods when the unit is started instead of + expecting them to exist. The default is "false". + Refer to podman-generate-systemd(1) for more information. + type: bool + default: false hostname: description: - Set a hostname to the pod