Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course Update: Section 5 - Looping -- No mention of "loop" i looping section #15

Open
ghost opened this issue Nov 9, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 9, 2021

In the section Ansible Playbooks, Deep Dive/Looping/ you go through all(?) variants of with_* in a great way.
Maybe it would be worth mentioning the loop keyword as it is promoted in the docs as:

the best choice for simple loops

(https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#comparing-loop-and-with)

Please note: this is not a criticism. Just a humble suggestion that hopefully is not annoying!

@spurin
Copy link
Owner

spurin commented Nov 9, 2021

This is great! I'll do an update with this. Thanks for the input 😁🚀

@sdavids
Copy link
Contributor

sdavids commented Jan 15, 2024

I second this.

We added loop in Ansible 2.5 [...] we recommend it for most use cases.

https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_loops.html

@spurin spurin changed the title No mention of "loop" i looping section Course Update: Section 5 - Looping -- No mention of "loop" i looping section Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants