diff --git a/geant/gap_ansible/roles/iptrunk_migration/tasks/deploy_object.yaml b/geant/gap_ansible/roles/iptrunk_migration/tasks/deploy_object.yaml index 9aba18efae277b2060d2163f5db0d366ca7e23c3..24ee4f6da4466f0a71ad93e7ae179b9385426649 100644 --- a/geant/gap_ansible/roles/iptrunk_migration/tasks/deploy_object.yaml +++ b/geant/gap_ansible/roles/iptrunk_migration/tasks/deploy_object.yaml @@ -22,3 +22,29 @@ verb == "deploy" and new_node.router.vendor == "juniper" and not (dry_run | ansible.builtin.bool) + +- name: Deploy "{{ config_object }}" on "{{ inventory_hostname }}" [CHECK ONLY][NOKIA] + ansible.netcommon.netconf_config: + format: xml + default_operation: merge + content: "{{ lookup('ansible.builtin.template', '{{ new_node.router.vendor }}/{{ config_object }}.j2') }}" + commit: true + diff: true + check_mode: true + when: > + verb == "deploy" and + ( dry_run | ansible.builtin.bool ) is true and + new_node.router.vendor == "nokia" + +- name: Deploy base_config on "{{ inventory_hostname }}" [AND COMMIT][NOKIA] + ansible.netcommon.netconf_config: + format: xml + default_operation: merge + content: "{{ lookup('ansible.builtin.template', '{{ new_node.router.vendor }}/{{ config_object }}.j2') }}" + commit: true + diff: true + check_mode: false + when: > + verb == "deploy" and + ( dry_run | ansible.builtin.bool ) is false and + new_node.router.vendor == "nokia"