Refer to the exhibit. A developer is writing an Ansible playbook to configure this interface on a Cisco IOS XE device. Which Ansible module should be used to set the IP address?
ios_config allows sending configuration commands like 'ip address'.
Why this answer
The `ios_config` module is the correct choice because it allows you to push raw configuration lines to Cisco IOS XE devices, including interface IP address configuration. It directly sends the `ip address` command under the interface context, which is the standard method for setting an IP address on an IOS XE interface. Other modules either lack the ability to set IP addresses or are designed for different purposes.
Exam trap
Cisco often tests the distinction between configuration modules (`ios_config`) and operational modules (`ios_command`, `ios_facts`), leading candidates to mistakenly choose `ios_command` because they think it can send configuration commands via the CLI.
How to eliminate wrong answers
Option A is wrong because `ios_ip_interface` is not a valid Ansible module; the correct module for managing interface IP addresses on IOS XE is `ios_l3_interface` or `ios_config`, not `ios_ip_interface`. Option B is wrong because `ios_command` is used to execute arbitrary show or exec commands on the device, not to apply configuration changes like setting an IP address. Option C is wrong because `ios_facts` is used to gather facts about the device (e.g., version, interfaces, neighbors), not to modify configuration.