xoxys.postgres/templates/etc/containers/systemd/postgres.network.j2
Robert Kaussow 17e78db3d3
Some checks failed
continuous-integration/drone/pr Build is failing
refactor: move to podman container setup
2023-08-06 16:02:31 +02:00

20 lines
622 B
Django/Jinja

#jinja2: lstrip_blocks: True
{{ ansible_managed | comment }}
[Network]
{% if postgres_network_ipv4_subnet is defined %}
Subnet={{ postgres_network_ipv4_subnet }}
{% endif %}
{% if postgres_network_ipv4_gateway is defined %}
Gateway={{ postgres_network_ipv4_gateway }}
{% endif %}
IPv6={{ postgres_network_ipv6_enabled | bool | lower }}
{% if postgres_network_ipv6_enabled | bool %}
{% if postgres_network_ipv6_subnet is defined %}
Subnet={{ postgres_network_ipv6_subnet }}
{% endif %}
{% if postgres_network_ipv6_gateway is defined %}
Gateway={{ postgres_network_ipv6_gateway }}
{% endif %}
{% endif %}
Label=app=postgres