feat: injection de la variable ansible_managed dans les templates

This commit is contained in:
wpetit 2022-08-16 15:28:29 +02:00
parent 49d5ec1b3d
commit 91419d7424
11 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
PODMAN_ARGS="\ PODMAN_ARGS="\
--name 'cadoles-pod-hydra-dispatcher-v1' \ --name 'cadoles-pod-hydra-dispatcher-v1' \
--replace \ --replace \

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
PODMAN_ARGS="\ PODMAN_ARGS="\
--name 'cadoles-pod-hydra-oidc-v1' \ --name 'cadoles-pod-hydra-oidc-v1' \
--replace \ --replace \

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
PODMAN_ARGS="\ PODMAN_ARGS="\
-p 127.0.0.1:3001:3000 \ -p 127.0.0.1:3001:3000 \
--network=slirp4netns:allow_host_loopback=true \ --network=slirp4netns:allow_host_loopback=true \

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
PODMAN_ARGS="\ PODMAN_ARGS="\
-p 127.0.0.1:3003:80 \ -p 127.0.0.1:3003:80 \
--network=slirp4netns:allow_host_loopback=true \ --network=slirp4netns:allow_host_loopback=true \

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
PODMAN_ARGS="\ PODMAN_ARGS="\
--name 'cadoles-pod-hydra-v1' \ --name 'cadoles-pod-hydra-v1' \
--replace \ --replace \

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
PODMAN_ARGS="\ PODMAN_ARGS="\
-p 127.0.0.1:3002:80 \ -p 127.0.0.1:3002:80 \
--network=slirp4netns:allow_host_loopback=true \ --network=slirp4netns:allow_host_loopback=true \

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
global global
log /dev/log local0 log /dev/log local0
log /dev/log local1 notice log /dev/log local1 notice

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
hydra: hydra:
apps: apps:
{% if enable_hydra_passwordless %} {% if enable_hydra_passwordless %}

View File

@ -1,3 +1,4 @@
# {{ ansible_managed }}
remote_user: remote_user:
subject_header: "{{ hydra_saml_subject_header }}" subject_header: "{{ hydra_saml_subject_header }}"
headers_attributes_mapping: {{ hydra_saml_headers_attributes_mapping | to_json }} headers_attributes_mapping: {{ hydra_saml_headers_attributes_mapping | to_json }}

View File

@ -1,3 +1,4 @@
<!-- {{ ansible_managed }} -->
{% for item in saml_attributes %} {% for item in saml_attributes %}
<Attribute {% for key,value in item.items() %}{% if value is not mapping %}{{ key }}="{{ value }}" {% endif %}{% endfor %}> <Attribute {% for key,value in item.items() %}{% if value is not mapping %}{{ key }}="{{ value }}" {% endif %}{% endfor %}>
{% if item.attributeDecoder is defined %} {% if item.attributeDecoder is defined %}

View File

@ -1,3 +1,4 @@
<!-- {{ ansible_managed }} -->
{%- macro xmlnode(node) -%} {%- macro xmlnode(node) -%}
<{{node.tag}}{% if node.attributes is defined %}{% for key,value in node.attributes.items() %} {{ key }}="{{ value }}"{% endfor %}{% endif %}{% if node.children is not defined %}/{% endif %}> <{{node.tag}}{% if node.attributes is defined %}{% for key,value in node.attributes.items() %} {{ key }}="{{ value }}"{% endfor %}{% endif %}{% if node.children is not defined %}/{% endif %}>
{% if node.children is defined %} {% if node.children is defined %}