I'm trying to apply a new configuration to some devices. This new config will also update the management ip of the devices, the same management ip that ansible used to connect to the device. Will the connection break immediately after ansible has configured this new ip without completing the rest of the tasks in the same playbook? Or ansible will complete the rest of the tasks it's supposed to?
Example playbook:
tasks:
- name: configure mgmt ip
......
- name: configure other interface
......
Will it ever complete the task "configure other interface", considering the previous task changed the ip that ansible used to connect to the device?