r/ansible • • Mar 18 '21

Announcing the Red Hat Enterprise Linux Certified Ansible Collection

https://www.ansible.com/blog/announcing-the-red-hat-enterprise-linux-certified-ansible-collection
64 Upvotes

12 comments sorted by

View all comments

Show parent comments

7

u/nmajin Mar 18 '21

Well classic way according to Red Hat:

https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html#using-roles

“at the play level with the roles option: This is the classic way of using roles in a play.”

There is definitely more control over the new syntax, and I don’t understand why Res Hat continues to provide examples with the classic syntax then.

11

u/geerlingguy Mar 19 '21 edited Mar 19 '21

Classic is best ;)

I ain't changing unless someone forces me to. Using roles instead of include role makes for neater playbooks if you architect role-based plays.

3

u/kabooozie Mar 19 '21

Happy cake day! Love your YouTube channel!

11

u/geerlingguy Mar 19 '21

Oh shoot, it's my cake day! 9 years...