diff --git a/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml b/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml
index 653d21d0c0d4c3be22f85b6746bd3397e8417afa..37c5a89e2dc69b8039f2b2bc3f380edd523e2cae 100644
--- a/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml
+++ b/geant/gap_ansible/roles/promote_p_to_pe/tasks/check_routing_instances.yaml
@@ -1,7 +1,7 @@
 - name: Set variable to connect to nokia
   ansible.builtin.set_fact:
-    ansible_network_os: nokia.sros.md
-    ansible_connection: netconf
+    ansible_connection: "{{ netconf_access[subscription.router.vendor].ansible_connection }}"
+    ansible_network_os: "{{ netconf_access[subscription.router.vendor].ansible_network_os }}"
 
 - name: Check VPRN BGP summary
   block:
diff --git a/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml b/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml
index 46a463d115d53af2bf99cbddf6acb4eb5eb019fb..995efd31ecf648f16da4165617b95cee9c8e5715 100644
--- a/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml
+++ b/geant/gap_ansible/roles/promote_p_to_pe/tasks/compile.yaml
@@ -59,4 +59,4 @@
     subscription.router.router_access_via_ts | ansible.builtin.bool
   ansible.builtin.set_fact:
     ansible_host: "{{ subscription.router.router_site.site_ts_address }}"
-    ansible_connection: netconf
+    ansible_connection: "{{ netconf_access[subscription.router.vendor].ansible_connection }}"