Skip to content

Commit 1232ceb

Browse files
committed
Add task to initialize setup azure to grab the subnet information needed for datahub creation. Modify task in initialize setup gcp to work properly. No selflink in Subnet Details.
1 parent 33b7a28 commit 1232ceb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

roles/runtime/tasks/initialize_setup_azure.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,9 @@
1010
# distributed under the License is distributed on an "AS IS" BASIS,
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
13-
# limitations under the License.
13+
# limitations under the License.
14+
15+
- name: Set fact for Azure Subnet Names by assignment
16+
when: infra__azure_subnets is defined
17+
ansible.builtin.set_fact:
18+
run__datahub_subnet_ids: "{{ infra__azure_subnets }}"

roles/runtime/tasks/initialize_setup_gcp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
- __gcp_subnets_discovered is defined
4747
- __gcp_subnets_discovered.resources is defined
4848
- __gcp_subnets_discovered.resources | length > 0
49-
- __gcp_subnet_item.selfLink in run__gcp_vpc_discovered.subnetworks
49+
#- __gcp_subnet_item.selfLink in run__gcp_vpc_discovered.subnetworks
5050
ansible.builtin.set_fact:
51-
run__datahub_subnet_ids: "{{ __gcp_subnets_discovered | json_query('resources[*].name') }}"
51+
run__datahub_subnet_ids: "{{ __gcp_subnets_discovered | json_query('resources[*].name') }}"

0 commit comments

Comments
 (0)