small fixes

This commit is contained in:
uumas
2026-03-15 22:30:16 +02:00
parent 162972810f
commit 77768e5483
2 changed files with 8 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
opt: opt:
parent: "{{ ansible_facts.default_ipv4.interface if network_driver == 'macvlan' else omit }}" parent: "{{ ansible_facts.default_ipv4.interface if network_driver == 'macvlan' else omit }}"
quadlet_options: quadlet_options:
- | - |-
[Service] [Service]
ExecStopPost=/usr/bin/podman network rm {{ network_name }} ExecStopPost=/usr/bin/podman network rm {{ network_name }}
notify: notify:

View File

@@ -13,7 +13,12 @@ _service_container_networks: >-
) )
+ ( + (
service_container_additional_networks service_container_additional_networks
+ (_service_container_publish_socket_ports | map(attribute='name') | map('regex_replace', '^', service_name ~ '-')) + (
_service_container_publish_socket_ports
| map(attribute='name')
| map('regex_replace', '^', service_name ~ '-')
| map('regex_replace', '$', '-socat')
)
) | map('community.general.dict_kv', 'name') ) | map('community.general.dict_kv', 'name')
}} }}
_service_static_ip: "{{ service_container_ip | length > 0 }}" _service_static_ip: "{{ service_container_ip | length > 0 }}"
@@ -29,7 +34,7 @@ _service_container_wants: >-
{{ {{
service_wants service_wants
+ ([service_name + '-socat.socket'] if service_container_http_port > 0 else []) + ([service_name + '-socat.socket'] if service_container_http_port > 0 else [])
+ ([service_name + '-oauth2-proxy-socat.socket'] if _service_oauth2_proxy else []) + ([service_name + '-oauth2-proxy.socket'] if _service_oauth2_proxy else [])
+ _service_container_publish_socket_ports + _service_container_publish_socket_ports
| map(attribute='name') | map(attribute='name')
| map('regex_replace', '^', service_name ~ '-') | map('regex_replace', '^', service_name ~ '-')