Skip to content

Commit

Permalink
Do not log az login command on any azure role/config (#5710)
Browse files Browse the repository at this point in the history
Co-authored-by: rut31337 <[email protected]>
  • Loading branch information
rut31337 and rut31337 authored Dec 15, 2022
1 parent 24f4d53 commit d3c642f
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions ansible/configs/aro/destroy_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
when: az_result is failed

- name: Login to Azure
no_log: True
command: >-
az login --service-principal
-u {{ azure_service_principal | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- validate_azure_template
- create_inventory
- must
no_log: True
command: >-
az login --service-principal
-u {{ azure_service_principal | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
register: ocp_azure_pwd

- name: Login to Azure
no_log: True
command: >-
az login
-u {{azure_ru_username | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
AZURE_CONFIG_DIR: "{{ output_dir }}/.azure-{{project_tag}}"
block:
- name: Login to Azure
no_log: True
command: >-
az login
-u {{ azure_ru_username | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
when: az_result is failed

- name: Login to Azure
no_log: True
command: >-
az login --service-principal
-u {{ azure_service_principal | quote }}
Expand Down
1 change: 1 addition & 0 deletions ansible/roles-infra/infra-azure-ssh-key/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# FAIL if key exists remotely but not locally

- name: Login to Azure
no_log: True
command: >-
az login --service-principal
-u {{ azure_service_principal | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
name: azure-cli

- name: Logging into Azure
no_log: True
command: >-
az login --service-principal
-u {{ azure_service_principal | quote }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
subscription_id: "{{ assignedsubscription.subscriptions[0].subscription_id }}"

- name: Log into Azure CLI
no_log: True
command: >
az login --service-principal -u {{ azure_service_principal }}
-p {{ azure_password }} --tenant {{ azure_tenant }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Login with azure root user
no_log: True
command: >-
az login -u "{{ azure_user }}"
-p="{{ azure_user_password }}" --tenant="{{ azure_tenant }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Login with azure root user
no_log: True
command: >-
az login -u "{{ azure_user }}"
-p="{{ azure_user_password }}" --tenant="{{ azure_tenant }}"
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/open-env-azure-install-aro/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Login with azure root user
no_log: True
command: >-
az login -u "{{ azure_user }}"
-p="{{ azure_user_password }}" --tenant="{{ azure_tenant }}"
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/open-env-azure-invite-user/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
- name: Initialize azureProfile.json
no_log: True
command: >
az login --service-principal -u {{ azure_service_principal }}
-p {{ azure_password }} --tenant {{ azure_tenant }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- poolid.status == 200
block:
- name: Log into Azure CLI
no_log: True
command: >
az login --service-principal -u {{ azure_service_principal }}
-p {{ azure_password }} --tenant {{ azure_tenant }}
Expand Down

0 comments on commit d3c642f

Please sign in to comment.