unless-stopped
This commit is contained in:
@@ -235,7 +235,7 @@ The role can automatically generate systemd service files for containers and pod
|
||||
podman_systemd_options:
|
||||
new: true # Generate new service files
|
||||
force: true # Overwrite existing files
|
||||
restart_policy: unless-stopped # Default restart policy
|
||||
restart_policy: always # Default restart policy
|
||||
time: 120 # Stop timeout in seconds
|
||||
no_header: false # Include header in service files
|
||||
wants: [] # Systemd unit Wants
|
||||
|
||||
@@ -619,8 +619,8 @@ podman_systemd_dir: /etc/systemd/system
|
||||
podman_systemd_options:
|
||||
new: true
|
||||
force: true
|
||||
restart_policy: unless-stopped
|
||||
time: 120
|
||||
restart_policy: always
|
||||
stop_timeout: 120
|
||||
no_header: false
|
||||
separator: ""
|
||||
wants: []
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
new: "{{ podman_systemd_options.new }}"
|
||||
force: "{{ podman_systemd_options.force }}"
|
||||
restart_policy: "{{ item.systemd.restart_policy | default(podman_systemd_options.restart_policy) }}"
|
||||
time: "{{ item.systemd.time | default(podman_systemd_options.time) }}"
|
||||
stop_timeout: "{{ item.systemd.stop_timeout | default(podman_systemd_options.stop_timeout) }}"
|
||||
no_header: "{{ item.systemd.no_header | default(podman_systemd_options.no_header) }}"
|
||||
separator: "{{ item.systemd.separator | default(podman_systemd_options.separator) }}"
|
||||
wants: "{{ item.systemd.wants | default(podman_systemd_options.wants) }}"
|
||||
@@ -32,7 +32,7 @@
|
||||
new: "{{ podman_systemd_options.new }}"
|
||||
force: "{{ podman_systemd_options.force }}"
|
||||
restart_policy: "{{ item.systemd.restart_policy | default(podman_systemd_options.restart_policy) }}"
|
||||
time: "{{ item.systemd.time | default(podman_systemd_options.time) }}"
|
||||
stop_timeout: "{{ item.systemd.stop_timeout | default(podman_systemd_options.stop_timeout) }}"
|
||||
no_header: "{{ item.systemd.no_header | default(podman_systemd_options.no_header) }}"
|
||||
separator: "{{ item.systemd.separator | default(podman_systemd_options.separator) }}"
|
||||
wants: "{{ item.systemd.wants | default(podman_systemd_options.wants) }}"
|
||||
|
||||
Reference in New Issue
Block a user