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

compile_template: cleanup

parent f9c317f1
No related branches found
No related tags found
1 merge request!111deactivate_trunk_side: module update
......@@ -20,7 +20,17 @@
mode: '0755'
delegate_to: localhost
- name: Print the template in "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
- name: Print template for the old node "{{ old_node_fqdn }}" in "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
ansible.builtin.template:
src: "{{ old_node_vendor }}/{{ config_object }}.j2"
dest: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
lstrip_blocks: true
trim_blocks: true
mode: '0755'
delegate_to: localhost
when: (verb == "delete" or verb == "deactivate") and inventory_hostname != new_node.router.router_fqdn
- name: Print template for the new node in "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
ansible.builtin.template:
src: "{{ new_node.router.vendor }}/{{ config_object }}.j2"
dest: "/var/tmp/ansible_run_{{ opid }}/{{ config_object }}.conf"
......@@ -28,6 +38,7 @@
trim_blocks: true
mode: '0755'
delegate_to: localhost
when: (verb == "deploy") and inventory_hostname == new_node.router.router_fqdn
- name: Set netconf connection for trunk nodes
ansible.builtin.include_tasks: set_netconf_connection.yaml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment