Skip to content

Commit

Permalink
adding no log to avoid any chance of data showing up ni CD logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmharlow committed Apr 10, 2019
1 parent ffbe2ba commit 3332b86
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/manage_airflow_variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

Expand Down
1 change: 1 addition & 0 deletions tasks/manage_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand Down
2 changes: 2 additions & 0 deletions tasks/manage_connections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'

Expand Down

0 comments on commit 3332b86

Please sign in to comment.