No video

Ansible Advanced Template Loops Tutorial - Use Loop Vars in Your Templates

  Рет қаралды 27,030

Percy Grunwald from TopTechSkills

Percy Grunwald from TopTechSkills

Күн бұрын

🎓 My new Ansible Course (Productive with Ansible, 2024) now in Early Access: learn.toptechs...
In this tutorial video I respond to a question on my Ansible Template Tutorial post on Reddit (bit.ly/2RC73T6). @movethrowaway2018 asked:
"How do I replace vars in the template that change with each loop? For example, what if I want to copy a template for a .gitconfig file for multiple users to each user's home directory?"
Great question! In this tutorial I show you my solution to this problem using the Ansible Template Module with a loop.
- 0:46 -- Playbook & Variables (how I set everything up)
- 1:30 -- Ensure Users Exist
- 3:18 -- Create .gitconfig for Each User (using the loop vars in the template)
▶️ TEMPLATE TUTORIAL VIDEO == • Ansible Advanced Templ...
✅ SEE HOW I SET UP ANSIBLE == • My Ansible Setup for T...
ℹ️ UPDATED EXAMPLE IN THE TEMPLATE MODULE TUTORIAL ARTICLE == bit.ly/2RY2YrH
Thanks for watching and hope it's entertaining/useful for you! Hit me up in the comments if you have any questions or feedback 💪.
Related & Channel
▶️ bit.ly/2VWid3D == Playlist of all Ansible videos
⭐️ bit.ly/2HavqCu == Subscribe to our KZbin Channel
Our Site & Socials
🌐 bit.ly/2shtKwZ == TopTechSkills.com
🐦 bit.ly/2RkgZkk == @TopTechSkills on Twitter
🐦 bit.ly/2AA19aN == @PercyGrunwald on Twitter
😃 bit.ly/2ACQgEW == @TopTechSkills on Facebook
🕹 bit.ly/2CWR3ST == @PercyGrunwald on Twitch

Пікірлер: 89
Ansible Apt Module Tutorial - Complete Beginner's Guide
12:01
Percy Grunwald from TopTechSkills
Рет қаралды 6 М.
Ansible Template Module Tutorial - Complete Beginner's Guide
9:04
Percy Grunwald from TopTechSkills
Рет қаралды 32 М.
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 24 МЛН
SCHOOLBOY. Последняя часть🤓
00:15
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 46 МЛН
Ansible Command Module Tutorial - Complete Beginner's Guide
10:11
Percy Grunwald from TopTechSkills
Рет қаралды 13 М.
Ansible Tips and Tricks
49:32
Red Hat Ansible Automation
Рет қаралды 10 М.
Ansible File Module Tutorial - Complete Beginner's Guide
15:20
Percy Grunwald from TopTechSkills
Рет қаралды 27 М.
Ansible Shell Module Tutorial - Complete Beginner's Guide
7:50
Percy Grunwald from TopTechSkills
Рет қаралды 24 М.
Ansible Copy Module Tutorial - Complete Beginner's Guide
10:42
Percy Grunwald from TopTechSkills
Рет қаралды 17 М.
Make your Ansible playbooks flexible, maintainable, and scalable
47:26
04. Ansible Loops and Loop Control
8:34
Vikas Jha
Рет қаралды 1,9 М.
Looping Over a Dictionary (Map) in Ansible
5:17
Michael Crilly
Рет қаралды 10 М.
Rapidly Build & Test Ansible Roles with Molecule + Docker
20:58
Percy Grunwald from TopTechSkills
Рет қаралды 31 М.
Variables and Variable Files in Ansible - Aruba Bots Ansible Series 03
17:26
Airheads Broadcasting
Рет қаралды 22 М.