From 3332b866b8e3c4c5f9e1a487b01b7cac8161de7e Mon Sep 17 00:00:00 2001 From: Christina Harlow Date: Wed, 10 Apr 2019 17:02:08 -0400 Subject: [PATCH] adding no log to avoid any chance of data showing up ni CD logs --- tasks/manage_airflow_variables.yml | 2 ++ tasks/manage_configuration.yml | 1 + tasks/manage_connections.yml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/tasks/manage_airflow_variables.yml b/tasks/manage_airflow_variables.yml index 2faf24f..ae0fbbb 100644 --- a/tasks/manage_airflow_variables.yml +++ b/tasks/manage_airflow_variables.yml @@ -9,6 +9,7 @@ set -o pipefail && \ {{ airflow_virtualenv }}/bin/airflow variables | grep -vE '^\[' changed_when: false + no_log: True register: 'airflow_existing_variables' args: executable: /bin/bash @@ -19,6 +20,7 @@ command: > {{ airflow_virtualenv }}/bin/airflow variables --delete {{ item.key }} changed_when: false + no_log: True with_items: "{{ airflow_variables }}" when: 'item.key in airflow_existing_variables.stdout_lines' diff --git a/tasks/manage_configuration.yml b/tasks/manage_configuration.yml index 4a9caf0..78ea58d 100644 --- a/tasks/manage_configuration.yml +++ b/tasks/manage_configuration.yml @@ -97,6 +97,7 @@ - name: 'CONFIG | Generate Airflow Webserver Admin Users if RBAC is enabled' become_user: "{{ airflow_user_name }}" become: true + no_log: True command: "{{ airflow_virtualenv }}/bin/airflow create_user --role Admin \ --username {{ item.google_username }} \ --email {{ item.email }} \ diff --git a/tasks/manage_connections.yml b/tasks/manage_connections.yml index e0638b2..37c791c 100644 --- a/tasks/manage_connections.yml +++ b/tasks/manage_connections.yml @@ -10,6 +10,7 @@ {{ airflow_virtualenv }}/bin/airflow connections --list | grep -E "\s+'" | cut -d "'" -f2 changed_when: false failed_when: False + no_log: True register: 'airflow_existing_connections' args: executable: /bin/bash @@ -20,6 +21,7 @@ command: > {{ airflow_virtualenv }}/bin/airflow connections --delete --conn_id {{ item.conn_id }} changed_when: false + no_log: True with_items: "{{ airflow_connections }}" when: 'item.conn_id in airflow_existing_connections.stdout_lines'