Ansible Home Server Pt. 1 - Installation, Environment, Inventory, Tasks & Variables

  Рет қаралды 61,279

Wolfgang's Channel

Wolfgang's Channel

Күн бұрын

In this new series we're going to write a perfect Ansible playbook for setting up a home server/NAS. In the first part I will show you the basics of Ansible: how to install it, how to set up your inventory, write tasks, create plain text and encrypted variables.
Follow me:
Twitter / notthebeeee
GitHub github.com/notthebee
Twitch twitch.com/notthebeee
Support the channel:
Patreon / wolfgangschannel
PayPal (one time donation) www.paypal.com/donate/?hosted...
Amazon Wishlist www.amazon.de/hz/wishlist/ls/...
Music:
Abloom - Blue Light
Lolek - Cruise Control
Vladislav Kurnikov - A New Time
Videos are edited with Davinci Resolve Studio. I use Affinity Photo for thumbnails and Ableton Live for audio editing.
Video gear:
Camera geni.us/K8OOyKV (Amazon)
Main lens geni.us/jnnElY4 (Amazon)
Microphone geni.us/tgiSqL (Amazon)
Key light geni.us/Gi1zE2 (Amazon)
Softbox geni.us/F86pM (Amazon)
Secondary light geni.us/aciv (Amazon)
Other stuff that I use:
Monitor geni.us/KUzcmcP (Amazon)
Monitor arm geni.us/5RXu (Amazon)
Laptop stand geni.us/X5vx9Af (Amazon)
Keyboard www.amazon.de/HHKB-PD-KB401W-...
Mouse geni.us/KB7h (Amazon)
Audio interface geni.us/sdhWsC (Amazon)
As an Amazon Associate, I earn from qualifying purchases
Timestamps:
00:00 Intro
00:57 What is Ansible?
01:25 Requirements
02:00 Installing Ansible
02:21 Project structure and inventory
03:17 Generating an SSH key
04:32 Tasks
06:20 Variables
07:35 Encrypted variables
08:27 More tasks
10:30 Writing the playbook
11:22 Running the playbook
12:20 Outro

Пікірлер: 120
@michaelvilain8457
@michaelvilain8457 2 жыл бұрын
You covered all the high points to start some off with ansible in 13 minutes. I even picked up some finer points I didn't know about to implement in my own playbooks, including a project that takes your VPN video and automates it on multiple distros.
@MaxCuberful
@MaxCuberful 2 жыл бұрын
Wolfgang, you are amazing at explaining concepts and procedures in an easy and coherent way even for beginners.
@jennabanasak9283
@jennabanasak9283 2 жыл бұрын
I love this guy. Normally I don't care for people who film themselves like they're some sort of personality. This guy is just himself and vehement about computer technology.
@antoinepins8322
@antoinepins8322 2 жыл бұрын
Great idea ! I was about to start trying Ansible this week end, happy to have now a good quality tutorial for beginners. Thanks !
@eliebrosset2387
@eliebrosset2387 2 жыл бұрын
With my birthday coming tomorrow it's the perfect early gift ! Thank you so much
@unknown_channel_name
@unknown_channel_name 2 жыл бұрын
This series is just in time as I was starting to learn Ansible after watching the last video. Great work dude!
@cindrmon
@cindrmon 2 жыл бұрын
you have introduced me to ansible, and now i absolutely love it! thank you for introducing me to it, and i'm looking forward to this series! i hope you cover how you install docker containers through ansible and many more configuration
@100daysofmeh
@100daysofmeh 2 жыл бұрын
Honestly...Gandalf at helm's deep level of suprise at this video. I had set a reminder for mid August to check back. (in the mean time I started watching Jeff's guide).
@rodrovelasquez1634
@rodrovelasquez1634 2 жыл бұрын
This series is going to be amazing, thank you
@_radu
@_radu 2 жыл бұрын
Aww yiss! I was really inteigued with ansible from your last video, but didn’t give it a proper go yet. This is a good starting point, thanks!
@dpsfitness7375
@dpsfitness7375 2 жыл бұрын
I’m so looking forward to this series. I’m looking at building a home server so this is going to help me so much! At the minute I just run home assistant on a NUC but I’m looking to expand and multiple servers and a NAS. Thank you for the amazing content.
@JaylanCan
@JaylanCan 2 жыл бұрын
Thanks Wolfgang, I've never used Ansible before but you made it easy, you're a great instructor. Looking forward to the next part.
@EVL624
@EVL624 2 жыл бұрын
This is fantastic! I am really looking forward to the rest of the series.
@machinainc5812
@machinainc5812 2 жыл бұрын
Thanks for doing this. This videos won't get as much views short term but long term they'll be learning resources and will get views. I've seen it happen plenty of times. Most of all, the community really appreciates this teaching videos. Can't wait for next part.
@notapplicable971
@notapplicable971 2 жыл бұрын
Been meaning to start learning ansible and IAC. Thanks for the vid!
@darrenehrlich6482
@darrenehrlich6482 2 жыл бұрын
Awesome - I had fun following along at home for a complete ansible noob. Thank you for putting this together!
@mroell
@mroell 2 жыл бұрын
Awesome can’t wait for part 2
@AkumaNoKuma
@AkumaNoKuma Жыл бұрын
excited for part 2
@ahlooii5432
@ahlooii5432 2 жыл бұрын
Everyone have a diff style of learning. I gotta say ur style is perfectly for me. I watch alots of ansible materials, including the mighty jeff geerling videos and books. But i still wasn't even fluent at the basic level and your video really get me to connected all the dots tgt. Please continue to make this series! ❤️
@m.2383
@m.2383 Жыл бұрын
Thank you so much for this. I actually found out about ansible through a random video that was suggested to me where you show off your homeserver, and you mentioned it in the end. This is really useful. Not only can I use it to set up servers, I can also use it to quickly set up a desktop how I want 😂
@MogelBoom
@MogelBoom 2 жыл бұрын
Hi, cool topic but it would be way more helpful (for me at least) if you would describe why you are doing what you're doing instead of what you are doing. Things like "We type xyz" aren't that helpful if not explained why we type it. Other than that a good video! It inspired me to make some IaC babysteps myself :)
@OdieFighter
@OdieFighter 2 жыл бұрын
thanks for making this awesome tutorial, took me sometime but was happy when it worked! looking forwards to the next exciting episode of ansible with wolfgang z !
@blevenzon
@blevenzon 2 жыл бұрын
Always wanted to learn Ansible. I can’t thank you enough!!! Awesome stuff.
@igielv
@igielv 2 жыл бұрын
Amazing staff!!! Nicely explained! 👍
@MarcinSzklany
@MarcinSzklany 2 жыл бұрын
This is a really useful introduction to this awesome tool! Thanks a lot for making it.
@user-rp4es7mf4x
@user-rp4es7mf4x 2 жыл бұрын
Legit just started doing this for my job, very fun video and beautifully touches the *tip* of the capabilities and potential of ansible. Вульфганг красавчик
@darkusboy1
@darkusboy1 2 жыл бұрын
This is amazing man! keep up the good work :D
@sidneyking11
@sidneyking11 2 жыл бұрын
@Wolfgang. Awesome video, thank you for creating this kind of content.
@jonidimo
@jonidimo 2 жыл бұрын
Wow, this channel is awesome !! liked and subscribed. Thank you for sharing all this knowledge.
@malev05
@malev05 2 жыл бұрын
Good one! Can't wait for part 2!
@hcjkruse
@hcjkruse 2 жыл бұрын
Compliments Nice to to point video for a quick overview.
@jesperkorsen1111
@jesperkorsen1111 2 жыл бұрын
Haven't yet even watched it but thank you so much for making so nice tutorials!
@BorisGrishenco
@BorisGrishenco 2 жыл бұрын
This video came out right at the moment I’m starting to learn ancible.
@Shuna322
@Shuna322 2 жыл бұрын
Damn I really liked this video, great explanation and simple examples, cant wait for next part! This video is unfairly unpopular on your channel.
@maarten1012TTT
@maarten1012TTT 2 жыл бұрын
Perfect timing! Thanks!
@brightonsikarskie8372
@brightonsikarskie8372 Жыл бұрын
Please continue to make these, this was very helpful :)
@davidzhong
@davidzhong 2 жыл бұрын
I don't know what this guy is doing but he is very cool. I hope I can have the same skills as his
@user-tf7xw6pc7p
@user-tf7xw6pc7p 2 жыл бұрын
Extremely cool tutorial, will try it out soon
@realbootybabe
@realbootybabe 2 жыл бұрын
Thanks a lot! This is the best ansible tutorial!! Please more more more ansible 🔥
@yasser-cifer8175
@yasser-cifer8175 2 жыл бұрын
plz continue 😂 am gonna do it as graduation project thnx soooo much 💕💕💕
@abhisheksah
@abhisheksah 2 жыл бұрын
so glad wolfgang is back
@timmy-159
@timmy-159 2 жыл бұрын
Amazing video. thank you!
@linkert810
@linkert810 2 жыл бұрын
Damn beautiful work! Thanks 👍
@whylde7834
@whylde7834 2 жыл бұрын
This is great! I appreciate this.
@kr0gan105
@kr0gan105 2 жыл бұрын
Can't wait for episode 2.
@TurntableTV
@TurntableTV 2 жыл бұрын
You are a legend, sir! Thank you!
@ananasw
@ananasw 2 жыл бұрын
Thank you very much for this video
@ichnafi8512
@ichnafi8512 2 жыл бұрын
Great idea for a Video series. Please also explain your backup scripts. How to you handle data from services or docker-containers?
@dpsfitness7375
@dpsfitness7375 2 жыл бұрын
Ok this is amazing.
@SirDAFF1
@SirDAFF1 Жыл бұрын
Все очень круто и доходчиво! Нужно еще домашние задания выдавать для реализации полезных вещей на сервере, на которые жалко времени в роликах.
@tredonlinder2543
@tredonlinder2543 2 жыл бұрын
Thank you very much for great tutorial
@Behnam_Moghaddam
@Behnam_Moghaddam 2 жыл бұрын
perfect timing!
@4790kusi
@4790kusi Жыл бұрын
Gotta say I was hype about this series. Shame it wasn't continued. I suppose it's not awfully common for people run their own servers, but for someone who just turned an old PC into one this tutorial was priceless.
@salvabasketmalvin
@salvabasketmalvin 2 жыл бұрын
Nice video!
@alexanderos8209
@alexanderos8209 2 жыл бұрын
Thank you for this great video. I did not rewatcch it as often as the "What's On My Home Server" Video, but still great. This Video has the right scope and pace for entry in ansible. I eaven dare to say it is better than the ones from Jeff Gerling. I hope you will continue this series soon. I will programm along while setting up my new home server Pi4/NUC etc... Viele Grüße aus Deutschland ;)
@kardashevr
@kardashevr Жыл бұрын
still waiting for the part 2. Need it badly
@aedankerr1358
@aedankerr1358 2 жыл бұрын
yesss, i wanted to recreate your server. POG
@CrAnKcHiLLaH
@CrAnKcHiLLaH Жыл бұрын
When is part 2 coming? Great video Wolfgang!
@heliophane
@heliophane 2 жыл бұрын
wow. maybe i should learn this at some point
@ProgressiveMech
@ProgressiveMech 2 жыл бұрын
When’s the next part coming! Haha I’m sooo excited!!
@danielsabirov9439
@danielsabirov9439 2 жыл бұрын
Спасибо вам за видео, рад услышать твой голос!!!
@DerRofflers
@DerRofflers 2 жыл бұрын
great video
@dmitriollariischimji2910
@dmitriollariischimji2910 2 жыл бұрын
Really god starting point for ansible. But, speaking for me, Is interesting the step of also scripting an installer
@KronosaurusRex
@KronosaurusRex Жыл бұрын
This was really cool, any chance part 2 is in the works? Anyways as an introduction is more than enough. Time to invest some time and explore myself.
@-blackcat-4749
@-blackcat-4749 4 ай бұрын
Would love to see the same vid but for automating Macs. I saw Jeff Geerling's vid on that, but would be interested in seeing your take on it too.
@mabscottsville28
@mabscottsville28 2 жыл бұрын
Thank you for this. Part 2 when?
@technicalsikh9261
@technicalsikh9261 Жыл бұрын
awesome
@speedflam
@speedflam 2 жыл бұрын
I guess I have to reinstall my server now !
@GiffysChannel
@GiffysChannel 2 жыл бұрын
I appreciate the Golden Boy clips lol
@papakeks
@papakeks 2 жыл бұрын
9:34 The Ansible Linter will punish you for that, Wolfgang! 👀
@nekoill
@nekoill 2 жыл бұрын
Обожаю твой канал
@rejeangauthier2943
@rejeangauthier2943 Жыл бұрын
Hi, I'm a follower and i'm like MaxCuberful and i think you are amazing at explaining concepts and procedures in an easy and coherent way even for beginners. Also i do not find the part 2 of this video Writing Your First Ansible Playbook! | IaC Deep Dive Pt. 1. Thanks to said me where i can find it !
@xxninjaplankerxx
@xxninjaplankerxx 11 ай бұрын
Great video but I had two questions about it 2:00 are we meant to install ansible on the ubuntu server? Also are we writing the yml files directly to our server as well?
@WolfgangsChannel
@WolfgangsChannel 11 ай бұрын
No and no
@Polderleo
@Polderleo 2 жыл бұрын
Hey, great video! What is the name of the vscode theme you are using? or is it a custom made one?
@WolfgangsChannel
@WolfgangsChannel 2 жыл бұрын
It's called "Nord"
@tinygriffy
@tinygriffy Ай бұрын
is there something like "reverse ansible" ? .. that can create a config from an installed system (preferably with a push of a (one!) button) ?
@phoenixbird09
@phoenixbird09 2 жыл бұрын
Thank you for this video, can you explain how to use host_vars instead of group_vars? Also thank I didnt know about the ssh_pipeline attribute or how to organize the vars at all. so thank you so much! Keep up the good work!
@WolfgangsChannel
@WolfgangsChannel 2 жыл бұрын
basically, put your host-specific vars into host_vars/hostname/vars.yml
@christiandassy8128
@christiandassy8128 2 жыл бұрын
@@WolfgangsChannel Excellent video! Thanks! Quick question any ETA on part2? I really want to continue growing my playbooks!
@hongotopiadada7574
@hongotopiadada7574 2 жыл бұрын
It's 5 month now, will there be a second video? I'd love to see it!
@ThaLiquidEdit
@ThaLiquidEdit 2 жыл бұрын
High quality video incoming!
@velvet7765
@velvet7765 2 жыл бұрын
nice patagonia shirt
@balamuralireddy
@balamuralireddy Жыл бұрын
What is the font family you're using? I like it very much
@WolfgangsChannel
@WolfgangsChannel Жыл бұрын
Cascadia Code
@uziboozy4540
@uziboozy4540 2 жыл бұрын
I wouldn't call Ansible Playbooks for infrastructure as code, but rather configuration management as code. Ansible is commonly used in cases where you want to configure the infrastructure you have already provisioned using e.g Terraform.
@grisemarster6012
@grisemarster6012 2 жыл бұрын
what would i do if i wanted to install xfce4 on arch with a playbook?
@brunogama9346
@brunogama9346 2 жыл бұрын
Please Part2
@Xac501
@Xac501 Жыл бұрын
When is part 2 coming?
@VS-oi2wv
@VS-oi2wv 2 жыл бұрын
@owlmostdead9492
@owlmostdead9492 2 жыл бұрын
Thumbs up for UTM
@HugoParedes
@HugoParedes 2 жыл бұрын
Why not use handlers for restarting SSH? To keep things simple?
@WolfgangsChannel
@WolfgangsChannel 2 жыл бұрын
Definitely! Planned to talk about handlers in a future video
@wstrater
@wstrater 2 жыл бұрын
You mentioned host_vars but put host specific configuration inside your inventory. Any reason why?
@deandre1988
@deandre1988 Жыл бұрын
3:50 On ubuntu i had specifiy default behaviour when using "ssh ServerName". Like so: For example, if you add this to your ~/.ssh/config file: Host User IdentityFile ~/.ssh/ IdentitiesOnly yes # force use THIS key
@faysalkhan8p
@faysalkhan8p Жыл бұрын
How do I add the ssh-key passphrase variable??
@NeuroGamer
@NeuroGamer 2 жыл бұрын
#goodshit
@SenthilBabuji
@SenthilBabuji 2 жыл бұрын
Is enabling password less sudo safe? Whey not just create variables for ansible_become_password in the vault for every host?
@WolfgangsChannel
@WolfgangsChannel 2 жыл бұрын
You're free to use password-ful sudo on your machine and adjust the playbook accordingly
@SenthilBabuji
@SenthilBabuji 2 жыл бұрын
@@WolfgangsChannel Yeah. I did the same. I always wanted to make ansible playbooks. Your video just matched the same time I am setting up a new server. It is a lot of work to set everything up. Thanks for the guide and inspiration, and I really learned some good tricks especially with variables and play book organization.
@pasan.
@pasan. 2 жыл бұрын
Alright, time to crawl out of the cave and turn my scattered linux install notes into an ansible playbook
@WolfgangsChannel
@WolfgangsChannel Жыл бұрын
Ansible Home Server playlist: kzbin.info/aero/PLkxWXio1KmRoZd88WbrnSnQM5MJY5PjH2 Code: github.com/notthebee/ansible_homeserver
@all_c1ear
@all_c1ear Жыл бұрын
hi, thanks for videos. can you give the name of anime in 1:19
@WolfgangsChannel
@WolfgangsChannel Жыл бұрын
It's called 'Golden Boy'
@christiandassy8128
@christiandassy8128 Жыл бұрын
Hello!! any news for part 2?
@maetnesstimtam5933
@maetnesstimtam5933 Жыл бұрын
Part 2 inc? :)
@arnjain
@arnjain 2 жыл бұрын
Can you do one about docker
@WolfgangsChannel
@WolfgangsChannel 2 жыл бұрын
Docker in general or setting up Docker containers with Ansible?
@arnjain
@arnjain 2 жыл бұрын
@@WolfgangsChannel Docker in general as I somehow cant wrap my head around it
@__5036
@__5036 2 жыл бұрын
On your youtube homepage can you please include uploads, so that the most recent videos could be found on your youtube homepage
@WolfgangsChannel
@WolfgangsChannel 2 жыл бұрын
Done
@__5036
@__5036 2 жыл бұрын
@@WolfgangsChannel Thank you...so much better
@Carlos-qi8er
@Carlos-qi8er 2 жыл бұрын
The Virgin "ricing i3" vs The Chad "Business man reproducible building"
@nevertwenty
@nevertwenty 2 жыл бұрын
more
Ansible Home Server Pt. 2 - Roles, Handlers, Ansible Galaxy, Filters & Loops
12:05
Automate EVERYTHING with Ansible! (Ansible for Beginners)
18:31
Techno Tim
Рет қаралды 222 М.
КАХА и Джин 2
00:36
К-Media
Рет қаралды 4 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 75 МЛН
Ansible vs. Terraform: What's the difference?
9:32
IBM Technology
Рет қаралды 181 М.
What's the Best PSU For Your Low Idle Home Server?
9:42
Wolfgang's Channel
Рет қаралды 63 М.
When Did Raspberry Pi become the villain?
21:54
Jeff Geerling
Рет қаралды 1,4 МЛН
15 crazy new JS framework features you don’t know yet
6:11
Fireship
Рет қаралды 406 М.
My Favorite YouTube Channels (not just tech!)
8:04
Wolfgang's Channel
Рет қаралды 30 М.
Nala is a New Package Manager for Debian and Ubuntu
13:42
DistroTube
Рет қаралды 51 М.
Simple automation for all your Linux servers with Ansible
26:00
Christian Lempa
Рет қаралды 66 М.
Say Goodbye to Containers - Ephemeral Environments with Nix Shell
16:58
Running Windows in a Docker Container!
10:07
Wolfgang's Channel
Рет қаралды 254 М.
AMD больше не конкурент для Intel
0:57
ITMania - Сборка ПК
Рет қаралды 504 М.
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 9 МЛН
Выложил СВОЙ АЙФОН НА АВИТО #shorts
0:42
Дмитрий Левандовский
Рет қаралды 1,3 МЛН
Which Phone Unlock Code Will You Choose? 🤔️
0:14
Game9bit
Рет қаралды 12 МЛН