A network engineer is automating the deployment of VLAN configurations on a set of Cisco IOS-XE switches using Ansible. The playbook uses the ios_vlans module and runs successfully on the first switch, but fails on the second switch with an error indicating that the module is not found. Both switches are running the same IOS-XE version and have the same management access configured. What is the most likely cause of this issue?
Trap 1: The second switch does not have the ios_vlans module installed…
Ansible modules run on the control node, not on the managed devices; the switch does not need the module installed.
Trap 2: The second switch has a different SSH key that is not accepted by…
SSH key issues would cause connection failures, not a 'module not found' error.
Trap 3: The playbook uses a fully qualified collection name (FQCN)…
An incorrect FQCN would cause a similar error, but the first switch succeeded, indicating the FQCN is correct.
- A
The second switch does not have the ios_vlans module installed locally.
Why wrong: Ansible modules run on the control node, not on the managed devices; the switch does not need the module installed.
- B
The cisco.ios collection is not installed on the Ansible control node.
The ios_vlans module is part of the cisco.ios collection; without it, the playbook fails on any device.
- C
The second switch has a different SSH key that is not accepted by the Ansible control node.
Why wrong: SSH key issues would cause connection failures, not a 'module not found' error.
- D
The playbook uses a fully qualified collection name (FQCN) incorrectly.
Why wrong: An incorrect FQCN would cause a similar error, but the first switch succeeded, indicating the FQCN is correct.