From a2289d2e0bf8f59aaf3d854098613d3b30b40366 Mon Sep 17 00:00:00 2001 From: sensei100 Date: Thu, 28 May 2020 15:02:20 -0400 Subject: [PATCH] Add to_json filter to Airflow variables --- tasks/manage_airflow_variables.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/manage_airflow_variables.yml b/tasks/manage_airflow_variables.yml index 5ec2652..47b29b4 100644 --- a/tasks/manage_airflow_variables.yml +++ b/tasks/manage_airflow_variables.yml @@ -34,7 +34,7 @@ - name: 'CONFIG | VARIABLES | Add variables' command: > - {{ airflow_virtualenv }}/bin/airflow variables --set {{ item.key }} "{{ item.value }}" + {{ airflow_virtualenv }}/bin/airflow variables --set {{ item.key }} {{ item.value | to_json }} no_log: True changed_when: merged_variables run_once: true