diff --git a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py index e5beea8479d..12172a9306d 100644 --- a/lib/ansible/modules/network/nxos/nxos_evpn_vni.py +++ b/lib/ansible/modules/network/nxos/nxos_evpn_vni.py @@ -275,8 +275,9 @@ def main(): candidate = CustomNetworkConfig(indent=3) candidate.add(commands, parents=parents) candidate = candidate.items_text() - load_config(module, candidate) - results['changed'] = True + if not module.check_mode: + load_config(module, candidate) + results['changed'] = True results['commands'] = candidate else: results['commands'] = []