Skip to content
Snippets Groups Projects
Commit c2cb7d2f authored by ale's avatar ale
Browse files

Avoid redundant Restart: systemd override for container services

The directive is already part of the container systemd template and it
is unnecessary to 'fix' it.
parent 8071771f
No related branches found
No related tags found
No related merge requests found
Pipeline #61718 passed
......@@ -3,7 +3,7 @@
# Find the systemd units matching locally running services, and ensure
# that they are set to always restart.
- set_fact:
local_systemd_units: "{{ float_enabled_services | map('extract', services) | rejectattr('systemd_services', 'undefined') | map(attribute='systemd_services') | flatten }}"
local_systemd_units: "{{ float_enabled_services | map('extract', services) | rejectattr('systemd_services', 'undefined') | map(attribute='systemd_services') | flatten | reject('search', '^docker-') }}"
- name: Fix systemd services to autorestart
include_role:
name: float-util-systemd-custom-snippet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment