I always love how you break things down give people the basic tools they need to get started to then play around and familiarize themselves with the tool top quality as always!
Just a lil tip for making all the folders and files for the structure in his example. Be inside the roles folder and type: mkdir -p {base,db_servers,web_servers,workstations,file_servers}/tasks This will make each folder in curly brackets contains a tasks folder in each.
Thanks for the tip. From the project root folder, the following command can be run to create the roles folder and sub-folders: mkdir -p roles/{base,db_servers,web_servers,workstations,file_servers}/tasks
can also do mkdir roles/{base,db_servers,file_servers,web_servers,workstations} ; cd roles ; for i in * ; do mkdir "$i/tasks" ; done ; cd - from repo root
This is probably the first new thing that I did in ansible after watching this video, which actually worked the first time. Really appreciate your effort in making this series!
Fantastic video. I gave a take home assignment for Ansible and your video series is a life saver. Easy to understand, well spoken, and explains concepts immediately when questions may arise. Thank you!
I was wandering here and there trying to learn proper execution of ansible and my search ended here. Slow, practical explanation and each and every step explained. Thank you so much for this !!!
Cool stuff, Jay! Thanks for another great part in this series. That makes a much better structure and allows to define custom roles I need in my setup. Now I can't wait to see the further improvements of using host variables. This series was a blast so far! 💪
Well done! Btw, I notice you have a System76 linux laptop. Have you done any videos about it? From purchase to setting it up, to features of both the laptop and popos? I’m currently a Mac user, As more and more apps go subscription, I’m thinking about switching to Linux as my daily driver instead of just a server OS.
Hi Jay, I have religiously been following all the steps in all your labs for this Ansible series & have one query. After all the additions: copying & pasting into the relevant main.yml. Does one then remove the plays in the site.yml file that correspond to these copy & pastes. I took the liberty of removing these plays in my site.yml file & when I ran the new site.yml file, I got results not similar to your's. Example apache2 was installed on the other Ubuntu servers. To reiterate, until this Roles lab, all my previous labs corresponding to yours generate all results like your's
Hello Jay, I want to create different roles to get status, start and stop supervisorctl. I would like to ask if possible to create one yml file to execute all those roles?
I find it interesting that you start by making a copy so that you have the original when that is precisely why you are using 'git'. You can go back to the original or see your change at any time by using the git commands.
Great series! I can't see the role where the user simone is created, like in the site_before_roles.yml. Did I miss that? EDIT: Found it, it is in the bootstrap.yml.
I always love how you break things down
give people the basic tools they need to get started to then play around and familiarize themselves with the tool
top quality as always!
You're an excellent teacher, and a perfect example of how the FOSS philosophy makes the world a better place.
Just a lil tip for making all the folders and files for the structure in his example. Be inside the roles folder and type:
mkdir -p {base,db_servers,web_servers,workstations,file_servers}/tasks
This will make each folder in curly brackets contains a tasks folder in each.
Thanks for the handy tip, Ryan. 🤛
Thanks for the tip.
From the project root folder, the following command can be run to create the roles folder and sub-folders:
mkdir -p roles/{base,db_servers,web_servers,workstations,file_servers}/tasks
for role in base db web workstation file ; do ansible-galaxy role init --offline "${role}" ; done
can also do mkdir roles/{base,db_servers,file_servers,web_servers,workstations} ; cd roles ; for i in * ; do mkdir "$i/tasks" ; done ; cd - from repo root
This is probably the first new thing that I did in ansible after watching this video, which actually worked the first time. Really appreciate your effort in making this series!
Fantastic video. I gave a take home assignment for Ansible and your video series is a life saver.
Easy to understand, well spoken, and explains concepts immediately when questions may arise.
Thank you!
I was wandering here and there trying to learn proper execution of ansible and my search ended here. Slow, practical explanation and each and every step explained. Thank you so much for this !!!
Cool stuff, Jay! Thanks for another great part in this series. That makes a much better structure and allows to define custom roles I need in my setup. Now I can't wait to see the further improvements of using host variables. This series was a blast so far! 💪
Glad you enjoyed it!
Why not simply use "ansible-galaxy init " to setup the folder structure for roles?
Jay. thank you for every videos :) it's definitely best ansible tutorial video.
Definitely clear my confusion about role! Thank you so much!
Very nice and concise explanation for a not so intuitive topic.
The best series! This is great!
Really great, Jay. This brings a lot together, letting me hone my TMUX and VIM skills as well!! Love it!
Thank you Jay !!!. gratitude to you.
Thank you very much for the explanation!
You are excellent Jay
Hi Jay. Great videos.
BTW, IMHO the “tree” command helps to see the entire role structure.
best Ansible roles explanation/example I have ever seen
Excellent, as all the other videos in this series. Thanks!
Excellente vidéo. I’m speechless
Thank so much cant really thank you enough, you rock man
very good video :)
Worked first time
You have been very helpful, thank you sir.
I wish to learn Jenkins from you too, someday.
Clearly explained and easy to follow. Thank you very much!
Thanks for sharing
superb explanation. Thanks a lot sir.
excellent explanation
so useful, thanks for teaching me
Well done! Btw, I notice you have a System76 linux laptop. Have you done any videos about it? From purchase to setting it up, to features of both the laptop and popos? I’m currently a Mac user, As more and more apps go subscription, I’m thinking about switching to Linux as my daily driver instead of just a server OS.
Great, easy to follow
Thanks Jay!!!
/> mkdir -p roles/{first_role,second_role,third_role}/tasks
thanks for the video
Thank you
not just ansible, i got to learn linux too :)
This all worked with me leaving my html file inside the original files folder.
So nobody knows the command ansible-galaxy? It creates all the role folder/subfolders/files in one command
ansible-galaxy init
Hi Jay, I have religiously been following all the steps in all your labs for this Ansible series & have one query. After all the additions: copying & pasting into the relevant main.yml. Does one then remove the plays in the site.yml file that correspond to these copy & pastes. I took the liberty of removing these plays in my site.yml file & when I ran the new site.yml file, I got results not similar to your's. Example apache2 was installed on the other Ubuntu servers.
To reiterate, until this Roles lab, all my previous labs corresponding to yours generate all results like your's
Hello Jay, I want to create different roles to get status, start and stop supervisorctl. I would like to ask if possible to create one yml file to execute all those roles?
i dont see the code for adding roles here
I understand now
I find it interesting that you start by making a copy so that you have the original when that is precisely why you are using 'git'. You can go back to the original or see your change at any time by using the git commands.
You must be very patient to do this all in nano.
Can u plz tell me , how to execute .sh file in ansible roles .
- name: script execution
command: sh /home/script.sh
explicitly calling sh should not be necessary if the hashbang line is set?
Liked it
Thanks. You spelled vim wrong.
Seeing you using nano when you'd rather use vim is truly painful!
Great series! I can't see the role where the user simone is created, like in the site_before_roles.yml. Did I miss that? EDIT: Found it, it is in the bootstrap.yml.
Thanks for sharing