diff --git a/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_main.yml b/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_main.yml index 7aa7a5b..1fc03ea 100644 --- a/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_main.yml +++ b/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_main.yml @@ -116,7 +116,7 @@ ansible.builtin.add_host: name: "{{ add_item[0].host_node }}" groups: "{{ add_item[0].sap_system_type + '_' if (add_item[0].sap_system_type != '') }}{{ add_item[0].sap_host_type }}" - ansible_host: "{{ add_item[0].resource.primary_network_interface[0].primary_ipv4_address }}" + ansible_host: "{{ add_item[0].resource.primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" ansible_user: "root" ansible_ssh_private_key_file: "{{ sap_vm_provision_ssh_host_private_key_file_path }}" ansible_ssh_common_args: -o ConnectTimeout=180 -o ControlMaster=auto -o ControlPersist=3600s -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ForwardX11=no -o ProxyCommand='ssh -W %h:%p {{ sap_vm_provision_bastion_user }}@{{ sap_vm_provision_bastion_public_ip }} -p {{ sap_vm_provision_bastion_ssh_port }} -i {{ sap_vm_provision_ssh_bastion_private_key_file_path }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' diff --git a/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_provision.yml b/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_provision.yml index c23bb8b..be2db1f 100644 --- a/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_provision.yml +++ b/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_provision.yml @@ -33,15 +33,30 @@ zone: "{{ sap_vm_provision_ibmcloud_availability_zone }}" vpc: "{{ __sap_vm_provision_task_ibmcloud_vpc_subnet.resource.vpc }}" - # The Subnet assigned to the primary Virtual Network Interface (vNIC) cannot be changed - # The Name and Security Group assigned to the Primary Network Interface (vNIC) are editable - primary_network_interface: - - name: "{{ inventory_hostname }}-vnic0" - subnet: "{{ __sap_vm_provision_task_ibmcloud_vpc_subnet.resource.id }}" - allow_ip_spoofing: "{{ target_provision_host_spec.disable_ip_anti_spoofing }}" # When disable the Anti IP Spoofing = true, then Allow IP Spoofing = true - security_groups: "{{ __sap_vm_provision_task_ibmcloud_vpc_sg.results | map(attribute='resource.id') }}" + # The Subnet assigned to the deprecated primary Virtual Network Interface (vNIC) cannot be changed + # The Name and Security Group assigned are editable + # primary_network_interface: + # - name: "{{ inventory_hostname }}-vnic0" + # subnet: "{{ __sap_vm_provision_task_ibmcloud_vpc_subnet.resource.id }}" + # allow_ip_spoofing: "{{ target_provision_host_spec.disable_ip_anti_spoofing }}" # When disable the Anti IP Spoofing = true, then Allow IP Spoofing = true + # security_groups: "{{ __sap_vm_provision_task_ibmcloud_vpc_sg.results | map(attribute='resource.id') }}" #network_interfaces: + # The Subnet assigned to the primary Virtual Network Interface (VNI) cannot be changed + # The Name and Security Group assigned are editable + primary_network_attachment: + - name: "{{ inventory_hostname }}-vni0-attach" + virtual_network_interface: + - name: "{{ inventory_hostname }}-vni0" + resource_group: "{{ __sap_vm_provision_task_ibmcloud_resource_group.resource.id }}" + subnet: "{{ __sap_vm_provision_task_ibmcloud_vpc_subnet.resource.id }}" + security_groups: "{{ __sap_vm_provision_task_ibmcloud_vpc_sg.results | map(attribute='resource.id') }}" + allow_ip_spoofing: "{{ target_provision_host_spec.disable_ip_anti_spoofing }}" # When disable the Anti IP Spoofing = true, then Allow IP Spoofing = true + enable_infrastructure_nat: true # must be true as Virtual Server instances require Infrastructure NAT + protocol_state_filtering_mode: "auto" + auto_delete: true # if VNI created separately, must be false + #network_attachments: + auto_delete_volume: true boot_volume: - name: "{{ inventory_hostname }}-boot-0" @@ -143,7 +158,7 @@ - name: Create fact for delegate host IP ansible.builtin.set_fact: - provisioned_private_ip: "{{ __sap_vm_provision_task_provision_host_single.resource.primary_network_interface[0].primary_ipv4_address }}" + provisioned_private_ip: "{{ __sap_vm_provision_task_provision_host_single.resource.primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" - name: Copy facts to delegate host @@ -155,7 +170,7 @@ delegate_sap_vm_provision_bastion_ssh_port: "{{ sap_vm_provision_bastion_ssh_port }}" delegate_sap_vm_provision_ssh_bastion_private_key_file_path: "{{ sap_vm_provision_ssh_bastion_private_key_file_path }}" delegate_sap_vm_provision_ssh_host_private_key_file_path: "{{ sap_vm_provision_ssh_host_private_key_file_path }}" - delegate_private_ip: "{{ __sap_vm_provision_task_provision_host_single.resource.primary_network_interface[0].primary_ipv4_address }}" + delegate_private_ip: "{{ __sap_vm_provision_task_provision_host_single.resource.primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" delegate_hostname: "{{ inventory_hostname }}" delegate_sap_vm_provision_dns_root_domain_name: "{{ sap_vm_provision_dns_root_domain }}" diff --git a/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_setup_ha.yml b/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_setup_ha.yml index be6dd55..4250a78 100644 --- a/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_setup_ha.yml +++ b/roles/sap_vm_provision/tasks/platform_ansible/ibmcloud_vs/execute_setup_ha.yml @@ -658,7 +658,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-sysdb-sql'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('3' + sap_system_hana_db_instance_nr + '13') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -675,7 +675,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-sysdb-sql'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('3' + sap_system_hana_db_instance_nr + '13') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -693,7 +693,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-mdc1-sql'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('3' + sap_system_hana_db_instance_nr + '15') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -710,7 +710,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-mdc1-sql'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('3' + sap_system_hana_db_instance_nr + '15') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -728,7 +728,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-startsrv-http'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_hana_db_instance_nr + '13') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -745,7 +745,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-startsrv-http'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_hana_db_instance_nr + '13') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -763,7 +763,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-startsrv-https'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_hana_db_instance_nr + '14') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -780,7 +780,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_hana + '-pool-startsrv-https'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_hana_db_instance_nr + '14') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -798,7 +798,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_anydb))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_anydb + '-pool-ibmdb2'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: 5912 weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -815,7 +815,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_anydb))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_anydb + '-pool-ibmdb2'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: 5912 weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -833,7 +833,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-dp'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('32' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -850,7 +850,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-dp'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('32' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -868,7 +868,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-ms'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('36' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -885,7 +885,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-ms'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('36' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -903,7 +903,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-ms-http'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('81' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -920,7 +920,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-ms-http'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('81' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -938,7 +938,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-enq'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('39' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -955,7 +955,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-enq'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('39' + sap_system_nwas_abap_ascs_instance_nr) | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -973,7 +973,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-enqrepl'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ascs_instance_nr + '16') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -990,7 +990,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-enqrepl'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ascs_instance_nr + '16') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1008,7 +1008,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-sapctrl'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ascs_instance_nr + '13') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1025,7 +1025,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-sapctrl'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ascs_instance_nr + '13') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1043,7 +1043,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-sapctrls'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ascs_instance_nr + '14') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1060,7 +1060,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ascs-pool-sapctrls'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ascs_instance_nr + '14') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1078,7 +1078,7 @@ # ibm.cloudcollection.ibm_is_lb_pool_member: # lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" # pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-dp'))[0].id }}" -# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" +# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" # port: "{{ ('32' + sap_system_nwas_abap_ers_instance_nr) | int }}" # weight: 100 # ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1095,7 +1095,7 @@ # ibm.cloudcollection.ibm_is_lb_pool_member: # lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" # pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-dp'))[0].id }}" -# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" +# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" # port: "{{ ('32' + sap_system_nwas_abap_ers_instance_nr) | int }}" # weight: 1 # ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1113,7 +1113,7 @@ # ibm.cloudcollection.ibm_is_lb_pool_member: # lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" # pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-ms'))[0].id }}" -# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" +# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" # port: "{{ ('36' + sap_system_nwas_abap_ers_instance_nr) | int }}" # weight: 100 # ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1130,7 +1130,7 @@ # ibm.cloudcollection.ibm_is_lb_pool_member: # lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" # pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-ms'))[0].id }}" -# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" +# target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" # port: "{{ ('36' + sap_system_nwas_abap_ers_instance_nr) | int }}" # weight: 1 # ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1148,7 +1148,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-enqr'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('39' + sap_system_nwas_abap_ers_instance_nr) | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1165,7 +1165,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-enqr'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('39' + sap_system_nwas_abap_ers_instance_nr) | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1183,7 +1183,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-sapctrl'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ers_instance_nr + '13') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1200,7 +1200,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-sapctrl'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ers_instance_nr + '13') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1218,7 +1218,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-sapctrls'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ers_instance_nr + '14') | int }}" weight: 100 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}" @@ -1235,7 +1235,7 @@ ibm.cloudcollection.ibm_is_lb_pool_member: lb: "{{ (ibmcloud_lbs_all_info | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers'))[0].id }}" pool: "{{ (__sap_vm_provision_task_ibmcloud_lb_pools.results | json_query('[*].resource.pools') | flatten | selectattr('name', '==', sap_vm_provision_ha_load_balancer_name_nwas + '-ers-pool-sapctrls'))[0].id }}" - target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_interface[0].primary_ipv4_address }}" + target_address: "{{ (__sap_vm_provision_task_ibmcloud_vs_all_info.resource.instances | selectattr('name', '==', host_node))[0].primary_network_attachment[0].virtual_network_interface[0].primary_ip[0].address }}" port: "{{ ('5' + sap_system_nwas_abap_ers_instance_nr + '14') | int }}" weight: 1 ibmcloud_api_key: "{{ sap_vm_provision_ibmcloud_api_key }}"