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

  Рет қаралды 62,119

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.
@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!
@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!
@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 !
@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.
@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
@eliebrosset2387
@eliebrosset2387 2 жыл бұрын
With my birthday coming tomorrow it's the perfect early gift ! Thank you so much
@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.
@darrenehrlich6482
@darrenehrlich6482 2 жыл бұрын
Awesome - I had fun following along at home for a complete ansible noob. Thank you for putting this together!
@EVL624
@EVL624 2 жыл бұрын
This is fantastic! I am really looking forward to the rest of the series.
@mroell
@mroell 2 жыл бұрын
Awesome can’t wait for part 2
@m.2383
@m.2383 2 жыл бұрын
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 😂
@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! ❤️
@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.
@blevenzon
@blevenzon 2 жыл бұрын
Always wanted to learn Ansible. I can’t thank you enough!!! Awesome stuff.
@notapplicable971
@notapplicable971 2 жыл бұрын
Been meaning to start learning ansible and IAC. Thanks for the vid!
@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. Вульфганг красавчик
@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 !
@AkumaNoKuma
@AkumaNoKuma Жыл бұрын
excited for part 2
@MarcinSzklany
@MarcinSzklany 2 жыл бұрын
This is a really useful introduction to this awesome tool! Thanks a lot for making it.
@malev05
@malev05 2 жыл бұрын
Good one! Can't wait for part 2!
@abhisheksah
@abhisheksah 2 жыл бұрын
so glad wolfgang is back
@igielv
@igielv 2 жыл бұрын
Amazing staff!!! Nicely explained! 👍
@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.
@sidneyking11
@sidneyking11 2 жыл бұрын
@Wolfgang. Awesome video, thank you for creating this kind of content.
@brightonsikarskie8372
@brightonsikarskie8372 Жыл бұрын
Please continue to make these, this was very helpful :)
@kr0gan105
@kr0gan105 2 жыл бұрын
Can't wait for episode 2.
@realbootybabe
@realbootybabe 2 жыл бұрын
Thanks a lot! This is the best ansible tutorial!! Please more more more ansible 🔥
@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).
@hcjkruse
@hcjkruse 2 жыл бұрын
Compliments Nice to to point video for a quick overview.
@maarten1012TTT
@maarten1012TTT 2 жыл бұрын
Perfect timing! Thanks!
@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.
@darkusboy1
@darkusboy1 2 жыл бұрын
This is amazing man! keep up the good work :D
@user-tf7xw6pc7p
@user-tf7xw6pc7p 2 жыл бұрын
Extremely cool tutorial, will try it out soon
@TurntableTV
@TurntableTV 2 жыл бұрын
You are a legend, sir! Thank you!
@jonidimo
@jonidimo 2 жыл бұрын
Wow, this channel is awesome !! liked and subscribed. Thank you for sharing all this knowledge.
@dpsfitness7375
@dpsfitness7375 2 жыл бұрын
Ok this is amazing.
@Behnam_Moghaddam
@Behnam_Moghaddam 2 жыл бұрын
perfect timing!
@whylde7834
@whylde7834 2 жыл бұрын
This is great! I appreciate this.
@yasser-cifer8175
@yasser-cifer8175 2 жыл бұрын
plz continue 😂 am gonna do it as graduation project thnx soooo much 💕💕💕
@timmy-159
@timmy-159 2 жыл бұрын
Amazing video. thank you!
@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 ;)
@ananasw
@ananasw 2 жыл бұрын
Thank you very much for this video
@linkert810
@linkert810 2 жыл бұрын
Damn beautiful work! Thanks 👍
@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
@SirDAFF1
@SirDAFF1 Жыл бұрын
Все очень круто и доходчиво! Нужно еще домашние задания выдавать для реализации полезных вещей на сервере, на которые жалко времени в роликах.
@aedankerr1358
@aedankerr1358 2 жыл бұрын
yesss, i wanted to recreate your server. POG
@tredonlinder2543
@tredonlinder2543 2 жыл бұрын
Thank you very much for great tutorial
@kardashevr
@kardashevr Жыл бұрын
still waiting for the part 2. Need it badly
@heliophane
@heliophane 2 жыл бұрын
wow. maybe i should learn this at some point
@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?
@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 :)
@dmodmodmodmo
@dmodmodmodmo 2 жыл бұрын
Really god starting point for ansible. But, speaking for me, Is interesting the step of also scripting an installer
@CrAnKcHiLLaH
@CrAnKcHiLLaH Жыл бұрын
When is part 2 coming? Great video Wolfgang!
@salvabasketmalvin
@salvabasketmalvin 2 жыл бұрын
Nice video!
@WolfgangsChannel
@WolfgangsChannel Жыл бұрын
Ansible Home Server playlist: kzfaq.info/sun/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'
@danielsabirov9439
@danielsabirov9439 2 жыл бұрын
Спасибо вам за видео, рад услышать твой голос!!!
@ProgressiveMech
@ProgressiveMech 2 жыл бұрын
When’s the next part coming! Haha I’m sooo excited!!
@speedflam
@speedflam 2 жыл бұрын
I guess I have to reinstall my server now !
@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.
@DerRofflers
@DerRofflers 2 жыл бұрын
great video
@GiffysChannel
@GiffysChannel 2 жыл бұрын
I appreciate the Golden Boy clips lol
@technicalsikh9261
@technicalsikh9261 2 жыл бұрын
awesome
@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.
@mabscottsville28
@mabscottsville28 2 жыл бұрын
Thank you for this. Part 2 when?
@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 !
@brunogama9346
@brunogama9346 2 жыл бұрын
Please Part2
@ThaLiquidEdit
@ThaLiquidEdit 2 жыл бұрын
High quality video incoming!
@tinygriffy
@tinygriffy 2 ай бұрын
is there something like "reverse ansible" ? .. that can create a config from an installed system (preferably with a push of a (one!) button) ?
@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
@papakeks
@papakeks 2 жыл бұрын
9:34 The Ansible Linter will punish you for that, Wolfgang! 👀
@hongotopiadada7574
@hongotopiadada7574 2 жыл бұрын
It's 5 month now, will there be a second video? I'd love to see it!
@velvet7765
@velvet7765 2 жыл бұрын
nice patagonia shirt
@Xac501
@Xac501 2 жыл бұрын
When is part 2 coming?
@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"
@grisemarster6012
@grisemarster6012 2 жыл бұрын
what would i do if i wanted to install xfce4 on arch with a playbook?
@faysalkhan8p
@faysalkhan8p Жыл бұрын
How do I add the ssh-key passphrase variable??
@balamuralireddy
@balamuralireddy Жыл бұрын
What is the font family you're using? I like it very much
@WolfgangsChannel
@WolfgangsChannel Жыл бұрын
Cascadia Code
@owlmostdead9492
@owlmostdead9492 2 жыл бұрын
Thumbs up for UTM
@maetnesstimtam5933
@maetnesstimtam5933 Жыл бұрын
Part 2 inc? :)
@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.
@xxninjaplankerxx
@xxninjaplankerxx Жыл бұрын
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 Жыл бұрын
No and no
@VS-oi2wv
@VS-oi2wv 2 жыл бұрын
@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!
@wstrater
@wstrater 2 жыл бұрын
You mentioned host_vars but put host specific configuration inside your inventory. Any reason why?
@christiandassy8128
@christiandassy8128 Жыл бұрын
Hello!! any news for part 2?
@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
@NeuroGamer
@NeuroGamer 2 жыл бұрын
#goodshit
@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
@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
@nevertwenty
@nevertwenty 2 жыл бұрын
more
@__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"
@evgenysmirnov4506
@evgenysmirnov4506 2 жыл бұрын
For ssh-keygen, `-o` is noop; `-a` do nothing w/o a passphrase 💁
Ansible Home Server Pt. 2 - Roles, Handlers, Ansible Galaxy, Filters & Loops
12:05
Busting 8 Common Homelab Power Efficiency Myths
19:14
Wolfgang's Channel
Рет қаралды 121 М.
孩子多的烦恼?#火影忍者 #家庭 #佐助
00:31
火影忍者一家
Рет қаралды 24 МЛН
Please be kind🙏
00:34
ISSEI / いっせい
Рет қаралды 187 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 28 МЛН
Automate EVERYTHING with Ansible! (Ansible for Beginners)
18:31
Techno Tim
Рет қаралды 225 М.
Complete Ansible Semaphore Tutorial: From Installation to Automation
48:07
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 331 М.
What's On My Home Server? Storage, OS, Media, Provisioning, Automation
27:30
Wolfgang's Channel
Рет қаралды 1,1 МЛН
Building a Power Efficient Home Server!
19:47
Wolfgang's Channel
Рет қаралды 966 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 457 М.
Make Your Home Server Go FAST with SSD Caching
17:41
Wolfgang's Channel
Рет қаралды 128 М.
I Tried Using my M1 Mac as a Server (It did not go well)
19:33
Wolfgang's Channel
Рет қаралды 177 М.
Working with Terraform and Ansible | Choosing the Ultimate IaC Tool
15:28
Akamai Developer
Рет қаралды 134 М.
My Favorite YouTube Channels (not just tech!)
8:04
Wolfgang's Channel
Рет қаралды 30 М.
Неразрушаемый смартфон
1:00
Status
Рет қаралды 2,1 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,3 МЛН
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 1,7 МЛН