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'