I know that ssh is smart enough to stay connected (or reconnect), but I am wondering if there is a general rule of thumb to keep in mind when restarting network services via ansible? ie. I am disabling NetworkManager on all systems, enabling the network, and then restarting the network. Any gotchas or anything else to be aware of?
# tasks file for disable_NetworkManager - name: Check if NetworkManager is installed shell: "rpm -qa | grep -i NetworkManager" changed_when: false no_log: true register: nm_installed ignore_errors: true