From 6996e9c8a5ed5c0a3f4c12b4691cfbc7785ee926 Mon Sep 17 00:00:00 2001 From: Kris Date: Sun, 19 Jan 2025 16:34:01 +0000 Subject: [PATCH] fixing more yaml --- generate_nginx_config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/generate_nginx_config.yml b/generate_nginx_config.yml index 5eab775..283504f 100644 --- a/generate_nginx_config.yml +++ b/generate_nginx_config.yml @@ -54,9 +54,13 @@ path: "./{{ TS_DIR }}" state: directory + - name: Set SAML variable + set_fact: + saml_prefix: "{% if saml_yes == 'yes' %}s{% else %}{% endif %}" + - name: Generate the NGINX configuration file template: src: nginx_template.j2 dest: "./{{ TS_DIR }}/{{ URL }}.conf" vars: - saml_yes: "{{ 's' if saml_yes == 'yes' else '' }}" \ No newline at end of file + saml_yes: "{{ saml_prefix }}" \ No newline at end of file