Skip to content
Snippets Groups Projects
Commit c8dd21df authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

deploy_object: added nokia tasks

parent 521eb06b
No related branches found
No related tags found
1 merge request!111deactivate_trunk_side: module update
...@@ -22,3 +22,29 @@ ...@@ -22,3 +22,29 @@
verb == "deploy" and verb == "deploy" and
new_node.router.vendor == "juniper" and new_node.router.vendor == "juniper" and
not (dry_run | ansible.builtin.bool) 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment