added pillar configured containers to auto detect

This commit is contained in:
= 2022-11-04 09:22:22 +01:00
parent dcb9dd29cd
commit 947767bdc9

View File

@ -9,3 +9,10 @@ Set linger for user {{ user }}:
cmd.run:
- name: loginctl enable-linger {{ user }}
- unless: test -e /var/lib/systemd/linger/{{ user }}
{% if pillar.containers is defined %}
include:
{%- for container, args in pillar.containers.items() %}
- podman.{{ container }}
{%- endfor %}
{%- endif %}