From c8dd21df6a3f8f257c38f8d6ae1072b28fcc419c Mon Sep 17 00:00:00 2001 From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342.local> Date: Thu, 7 Mar 2024 15:22:04 +0000 Subject: [PATCH] deploy_object: added nokia tasks --- .../tasks/deploy_object.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) 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 9aba18ef..24ee4f6d 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" -- GitLab