Refer to the exhibit. Interfaces named Loopback0, Loopback1, and Loopback2 must be created and enabled on a Cisco IOS XE target device in the lab group. Which loop must be added to the end of the Ansible ''create int'' task?
Hold up, guys. What if we need to do something more complex, like creating the interfaces with specific parameters? Maybe with_list or with_parent would be more appropriate.
Hmm, good point. But I think for this specific question, with_items is the way to go. The question doesn't mention any additional requirements beyond creating and enabling the interfaces.
You're right. And looking at the options, I think with_items is the way to go. It allows us to iterate over a list of items, which is exactly what we need here.
Agreed. with_items seems like the best choice. It's simple and straightforward, and it should get the job done. Plus, it's a classic Ansible loop, so it's a safe bet.
upvoted 0 times
...
Log in to Pass4Success
Sign in:
Report Comment
Is the comment made by USERNAME spam or abusive?
Commenting
In order to participate in the comments you need to be logged-in.
You can sign-up or
login
Germaine
7 months agoKaitlyn
7 months agoSage
7 months agoGermaine
7 months agoKaitlyn
7 months agoArlette
8 months agoTaryn
8 months agoPete
8 months agoHoward
8 months agoOtis
8 months agoElza
8 months agoKirk
8 months agoGary
8 months agoKaycee
8 months agoLacresha
8 months agoCecil
8 months ago