Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Aci network #318

Merged
merged 1 commit into from
Feb 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions templates/platform/level2/asvm/ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
# path: "{{ destination_base }}/{{ config.configuration_folders.platform.destination_relative_path }}/{{ level }}/{{ base_folder }}"
# state: directory

- name: "[{{resources.relative_destination_folder}}] Get tfstate account name"
register: launchpad_storage_account
shell: |
az storage account list \
--subscription {{ config.caf_terraform.launchpad.subscription_id }} \
--query "[?tags.caf_tfstate=='{{ config.tfstates.platform.launchpad.level }}' && tags.caf_environment=='{{ config.caf_terraform.launchpad.caf_environment }}'].{name:name}[0]" -o json | jq -r .name

- debug:
msg: "{{launchpad_storage_account}}"

- name: "[{{deployment}} - {{resources.relative_destination_folder}}] - Get launchpad tfstate details"
register: launchpad_tfstate_exists
ignore_errors: true
Expand Down