Hi,
I have a written a script to do IOS upgrade of active-standby ASA firewall. Script first upgrades standby firewall and does post-upgrade verification and then switches to active firewall to upgrade it (multiple plays in a playbook). Using ansible 2.10 with python 3 in WSL linux.
After standby firewall reloads and comes back, script freezes in the ASA_command module for gathering failover state for no apparent reason. No success or error is shown, it just stends there. This same failover state is gathered without any issues before reload though.
I removed ASA_command module but script again freezes in the next module below ASA_command module.
This happens only for active-stansby firewall. The same module doesn’t freeze for standalone firewall after reboot.
i changed connection type from network_cli to local but didn’t help.
I am giving below truncated script and console output for ‘gather failover state’ module when script was run with -vvvv. As the entire script is several pages long.
I am thinking of experimenting with cli_command module instead of asa_command module. Also thinking of splitting post-upgrade tasks into a separate play withion same playbook. However i am trying to get to the root cause of this issue.
TRUNCATED SCRIPT: