Skip to content

Commit

Permalink
Merge pull request #317 from LaurentLesle/aci_network
Browse files Browse the repository at this point in the history
Aci network
  • Loading branch information
LaurentLesle committed Feb 14, 2022
2 parents 1a2c973 + bf7ca31 commit 9771591
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions templates/platform/level2/asvm/ansible.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,40 @@
# path: "{{ destination_base }}/{{ config.configuration_folders.platform.destination_relative_path }}/{{ level }}/{{ base_folder }}"
# state: directory

- name: "[{{deployment}} - {{resources.relative_destination_folder}}] - Get launchpad tfstate details"
register: launchpad_tfstate_exists
ignore_errors: true
shell: |
az storage blob download \
--name "{{ config.tfstates.platform.launchpad.tfstate }}" \
--account-name "{{ launchpad_storage_account.stdout | default('') }}" \
--container-name "{{ config.tfstates.platform.launchpad.workspace | default('tfstate') }}" \
--auth-mode "login" \
--file "~/.terraform.cache/launchpad/{{ config.tfstates.platform.launchpad.tfstate }}"
- name: "[{{deployment}} - {{resources.relative_destination_folder}}] - Get subscription_creation_landingzones details"
when:
- launchpad_tfstate_exists.rc == 0
- config.platform_core_setup.enterprise_scale.enable_azure_subscription_vending_machine
shell: "cat ~/.terraform.cache/launchpad/{{ config.tfstates.platform.launchpad.tfstate }}"
register: launchpad_tfstate

- name: "[{{deployment}} - {{resources.relative_destination_folder}}] - Get launchpad json data"
when:
- launchpad_tfstate_exists.rc == 0
- config.platform_core_setup.enterprise_scale.enable_azure_subscription_vending_machine
set_fact:
scljsondata: "{{ launchpad_tfstate.stdout | from_json }}"

- name: "[{{deployment}} - {{resources.relative_destination_folder}}] - set launchpad_azuread_groups"
when:
- launchpad_tfstate_exists.rc == 0
- config.platform_core_setup.enterprise_scale.enable_azure_subscription_vending_machine
set_fact:
launchpad_azuread_groups: "{{ scljsondata | json_query(path) }}"
vars:
path: 'outputs.objects.value.launchpad.azuread_groups'


- name: "[{{deployment}} - {{resources.relative_destination_folder}}] - Get level2 tfstate account name"
register: level2_storage_account
Expand Down

0 comments on commit 9771591

Please sign in to comment.