diff --git a/lib/ansible/modules/network/nxos/nxos_hsrp.py b/lib/ansible/modules/network/nxos/nxos_hsrp.py index 3da4ef7fcd..9fb1828a85 100644 --- a/lib/ansible/modules/network/nxos/nxos_hsrp.py +++ b/lib/ansible/modules/network/nxos/nxos_hsrp.py @@ -463,7 +463,7 @@ def main(): load_config(module, commands) # validate IP - if transport == 'cli': + if transport == 'cli' and state == 'present': commands.insert(0, 'config t') body = run_commands(module, commands) validate_config(body, vip, module)