#jinja2: lstrip_blocks: True {{ ansible_managed | comment }} [Install] WantedBy=default.target [Service] Restart=on-failure RestartSec=5s [Container] Image={{ gitea_image }} EnvironmentFile=/etc/containers/systemd/gitea.env {% for item in gitea_volumes %} Volume={{ item.name }}:{{ item.dest }}{{ ":" + item.opts if item.opts is defined else "" }} {% endfor %} {% if (gitea_cap_add + gitea_cap_drop) | length > 0 %} {% if gitea_cap_add | length > 0 %} AddCapability={{ gitea_cap_add | join(" ") }} {% endif %} {% if gitea_cap_drop | length > 0 %} DropCapability={{ gitea_cap_drop | join(" ") }} {% endif %} {% endif %} Network={{ gitea_network }} {% for item in gitea_exposed_ports %} PublishPort={{ item }} {% endfor %} {% for item in gitea_podman_args %} PodmanArgs={{ item }} {% endfor %}