---## RENDER CONFIG, AND DO CONFIG OVERRIDE - name: "Rendering Junos jinja template into conf"
template:
src: "template_full_config.j2"
dest: "/Users/mfatty/Projects/ansible/nql_ansible/roles/junos_dut_role/rendered_full_config.conf"
tags: config_override - name: "load override with new config"
juniper_junos_config:
provider: "{{ credentials }}"
config_mode: "private"
load: "override"
src: "/Users/mfatty/Projects/ansible/nql_ansible/roles/junos_dut_role/rendered_full_config.conf"
format: "text"
register: response
tags: config_override - debug: msg = {{ response }}
tags: config_override## VERIFY BGP STATE
- name: check bgp status
juniper_junos_command:
provider: "{{ credentials }}"
commands: "show bgp summary"
tags: verify_bgp
register: response - debug:
var: response.stdout_lines
tags: verify_bgp
Hi,
Perhaps you should look around "meta: reset_connection" described
here :
https://docs.ansible.com/ansible/latest/modules/meta_module.html
Little more details here :
https://www.ansible.com/blog/rebooting-network-devices-with-ansible
But I think you have another problem to manage the ip
change....So you probably need to update your inventory directly
in your ansible playbook or have two different objects in your
inventory, so have two play in your playbook.
Regards,
JYL
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/77463894-dd66-43ca-800e-2f0f36276725o%40googlegroups.com.