alloy(role): pull in alloy role that works from fux
This commit is contained in:
parent
1ae4a39f57
commit
25bf4da29d
247 changed files with 555 additions and 19212 deletions
29
roles/alloy/templates/podman.container.jinja
Normal file
29
roles/alloy/templates/podman.container.jinja
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# {{ ansible_managed }}
|
||||
# man podman-systemd.unit
|
||||
|
||||
{% if container_unit_args is not none %}
|
||||
[Unit]
|
||||
{% for container_unit_arg in container_unit_args %}
|
||||
{{ container_unit_arg }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
[Container]
|
||||
Image={{ container_image_with_tag }}
|
||||
{% if container_exec is not none %}
|
||||
Exec={{ container_exec }}
|
||||
{% endif %}
|
||||
{% for container_env in container_envs %}
|
||||
Environment={{ container_env.key }}={{ container_env.value }}
|
||||
{% endfor %}
|
||||
Network=host
|
||||
UserNS=host
|
||||
User={{ user_id }}
|
||||
Group={{ group_id }}
|
||||
{% for container_vol in container_volumes %}
|
||||
Volume={{ container_vol.host }}:{{ container_vol.inside }}
|
||||
{% endfor %}
|
||||
LogDriver=journald
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue