Q34Infrastructure and Automation
Refer to the exhibit. The displayed YAML uses the `ios_vrf` module. As part of the Ansible playbook workflow, what occurs when this task runs?
← → navigate · a answer
Community votes
Discussion · 4
13
To me, the answer is indeed ‘D’
6
I agree with D as the Answer
----------
Explanation:
ios_vrf : Manage the collection of VRF definitions on Cisco IOS devices
purge : Tells the module to treat the VRF definition as absolute. It will remove any VRFs previously configured on the device.
Choice : Yes | No
Example:
- name: configure set of VRFs and purge any others
ios_vrf:
vrfs:
- red
- blue
- green
purge: yes
D 4
Selected Answer: D
purge
boolean
Tells the module to treat the VRF definition as absolute. It will remove any previously configured VRFs on the device.
Choices:
no ← (default)
yes
https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_vrf_module.html
D 3
Selected Answer: D
D is correct:
- vrfs: The collection of VRF definition objects to be configured on the remote IOS device. Ths list entries can either be the VRF name or a hash of VRF definitions and attributes. This argument is mutually exclusive with the name argument (string).
- state: Sets the state of the VRF definition as it relates to the device operational configuration. When set to present, the VRF should be configured in the device active configuration and when set to absent the VRF should not be in the device active configuration. Choices: Present (default) / absent
- purge: Tells the module to treat the VRF definition as absolute. It will remove any previously configured VRFs on the device. no (default) / yes
https://docs.ansible.com/ansible/latest/collections/cisco/ios/ios_vrf_module.html