unless-stopped

This commit is contained in:
Daniel Akulenok
2025-09-05 23:40:44 +02:00
parent 714574fd7d
commit ad681951fd
3 changed files with 5 additions and 5 deletions

View File

@@ -235,7 +235,7 @@ The role can automatically generate systemd service files for containers and pod
podman_systemd_options: podman_systemd_options:
new: true # Generate new service files new: true # Generate new service files
force: true # Overwrite existing 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 time: 120 # Stop timeout in seconds
no_header: false # Include header in service files no_header: false # Include header in service files
wants: [] # Systemd unit Wants wants: [] # Systemd unit Wants

View File

@@ -619,8 +619,8 @@ podman_systemd_dir: /etc/systemd/system
podman_systemd_options: podman_systemd_options:
new: true new: true
force: true force: true
restart_policy: unless-stopped restart_policy: always
time: 120 stop_timeout: 120
no_header: false no_header: false
separator: "" separator: ""
wants: [] wants: []

View File

@@ -8,7 +8,7 @@
new: "{{ podman_systemd_options.new }}" new: "{{ podman_systemd_options.new }}"
force: "{{ podman_systemd_options.force }}" force: "{{ podman_systemd_options.force }}"
restart_policy: "{{ item.systemd.restart_policy | default(podman_systemd_options.restart_policy) }}" 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) }}" no_header: "{{ item.systemd.no_header | default(podman_systemd_options.no_header) }}"
separator: "{{ item.systemd.separator | default(podman_systemd_options.separator) }}" separator: "{{ item.systemd.separator | default(podman_systemd_options.separator) }}"
wants: "{{ item.systemd.wants | default(podman_systemd_options.wants) }}" wants: "{{ item.systemd.wants | default(podman_systemd_options.wants) }}"
@@ -32,7 +32,7 @@
new: "{{ podman_systemd_options.new }}" new: "{{ podman_systemd_options.new }}"
force: "{{ podman_systemd_options.force }}" force: "{{ podman_systemd_options.force }}"
restart_policy: "{{ item.systemd.restart_policy | default(podman_systemd_options.restart_policy) }}" 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) }}" no_header: "{{ item.systemd.no_header | default(podman_systemd_options.no_header) }}"
separator: "{{ item.systemd.separator | default(podman_systemd_options.separator) }}" separator: "{{ item.systemd.separator | default(podman_systemd_options.separator) }}"
wants: "{{ item.systemd.wants | default(podman_systemd_options.wants) }}" wants: "{{ item.systemd.wants | default(podman_systemd_options.wants) }}"