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

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • 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
  • Věda a technologie

Komentáře • 121

  • @michaelvilain8457
    @michaelvilain8457 Před 2 lety +56

    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 Před 2 lety +32

    Wolfgang, you are amazing at explaining concepts and procedures in an easy and coherent way even for beginners.

  • @unknown_channel_name
    @unknown_channel_name Před 2 lety +6

    This series is just in time as I was starting to learn Ansible after watching the last video. Great work dude!

  • @rodrovelasquez1634
    @rodrovelasquez1634 Před 2 lety +5

    This series is going to be amazing, thank you

  • @antoinepins8322
    @antoinepins8322 Před 2 lety +16

    Great idea ! I was about to start trying Ansible this week end, happy to have now a good quality tutorial for beginners. Thanks !

  • @_radu
    @_radu Před 2 lety +1

    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!

  • @cindrmon
    @cindrmon Před 2 lety +4

    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 Před 2 lety +1

    With my birthday coming tomorrow it's the perfect early gift ! Thank you so much

  • @dpsfitness7375
    @dpsfitness7375 Před 2 lety

    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 Před 2 lety

    Thanks Wolfgang, I've never used Ansible before but you made it easy, you're a great instructor. Looking forward to the next part.

  • @machinainc5812
    @machinainc5812 Před 2 lety +1

    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.

  • @darrenehrlich6482
    @darrenehrlich6482 Před 2 lety

    Awesome - I had fun following along at home for a complete ansible noob. Thank you for putting this together!

  • @m.2383
    @m.2383 Před 2 lety

    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 Před 2 lety

    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! ❤️

  • @EVL624
    @EVL624 Před 2 lety

    This is fantastic! I am really looking forward to the rest of the series.

  • @mroell
    @mroell Před 2 lety +6

    Awesome can’t wait for part 2

  • @user-rp4es7mf4x
    @user-rp4es7mf4x Před 2 lety

    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 Před 2 lety

    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 !

  • @notapplicable971
    @notapplicable971 Před 2 lety +1

    Been meaning to start learning ansible and IAC. Thanks for the vid!

  • @blevenzon
    @blevenzon Před 2 lety

    Always wanted to learn Ansible. I can’t thank you enough!!! Awesome stuff.

  • @MarcinSzklany
    @MarcinSzklany Před 2 lety

    This is a really useful introduction to this awesome tool! Thanks a lot for making it.

  • @AkumaNoKuma
    @AkumaNoKuma Před 2 lety +1

    excited for part 2

  • @abhisheksah
    @abhisheksah Před 2 lety

    so glad wolfgang is back

  • @jennabanasak9283
    @jennabanasak9283 Před 2 lety

    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.

  • @malev05
    @malev05 Před 2 lety

    Good one! Can't wait for part 2!

  • @igielv
    @igielv Před 2 lety

    Amazing staff!!! Nicely explained! 👍

  • @100daysofmeh
    @100daysofmeh Před 2 lety

    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).

  • @sidneyking11
    @sidneyking11 Před 2 lety +1

    @Wolfgang. Awesome video, thank you for creating this kind of content.

  • @Shuna322
    @Shuna322 Před 2 lety

    Damn I really liked this video, great explanation and simple examples, cant wait for next part! This video is unfairly unpopular on your channel.

  • @darkusboy1
    @darkusboy1 Před 2 lety

    This is amazing man! keep up the good work :D

  • @realbootybabe
    @realbootybabe Před 2 lety

    Thanks a lot! This is the best ansible tutorial!! Please more more more ansible 🔥

  • @BorisGrishenco
    @BorisGrishenco Před 2 lety

    This video came out right at the moment I’m starting to learn ancible.

  • @jesperkorsen1111
    @jesperkorsen1111 Před 2 lety

    Haven't yet even watched it but thank you so much for making so nice tutorials!

  • @brightonsikarskie8372

    Please continue to make these, this was very helpful :)

  • @dpsfitness7375
    @dpsfitness7375 Před 2 lety

    Ok this is amazing.

  • @hcjkruse
    @hcjkruse Před 2 lety

    Compliments Nice to to point video for a quick overview.

  • @maarten1012TTT
    @maarten1012TTT Před 2 lety

    Perfect timing! Thanks!

  • @kr0gan105
    @kr0gan105 Před 2 lety

    Can't wait for episode 2.

  • @whylde7834
    @whylde7834 Před 2 lety

    This is great! I appreciate this.

  • @jonidimo
    @jonidimo Před 2 lety

    Wow, this channel is awesome !! liked and subscribed. Thank you for sharing all this knowledge.

  • @TurntableTV
    @TurntableTV Před 2 lety

    You are a legend, sir! Thank you!

  • @user-tf7xw6pc7p
    @user-tf7xw6pc7p Před 2 lety

    Extremely cool tutorial, will try it out soon

  • @ananasw
    @ananasw Před 2 lety

    Thank you very much for this video

  • @timmy-159
    @timmy-159 Před 2 lety

    Amazing video. thank you!

  • @linkert810
    @linkert810 Před 2 lety

    Damn beautiful work! Thanks 👍

  • @Behnam_Moghaddam
    @Behnam_Moghaddam Před 2 lety

    perfect timing!

  • @davidzhong
    @davidzhong Před 2 lety

    I don't know what this guy is doing but he is very cool. I hope I can have the same skills as his

  • @salvabasketmalvin
    @salvabasketmalvin Před 2 lety

    Nice video!

  • @yasser-cifer8175
    @yasser-cifer8175 Před 2 lety

    plz continue
    😂 am gonna do it as graduation project
    thnx soooo much 💕💕💕

  • @tredonlinder2543
    @tredonlinder2543 Před 2 lety

    Thank you very much for great tutorial

  • @aedankerr1358
    @aedankerr1358 Před 2 lety

    yesss, i wanted to recreate your server. POG

  • @alexanderos8209
    @alexanderos8209 Před 2 lety

    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 ;)

  • @SirDAFF1
    @SirDAFF1 Před rokem

    Все очень круто и доходчиво! Нужно еще домашние задания выдавать для реализации полезных вещей на сервере, на которые жалко времени в роликах.

  • @CrAnKcHiLLaH
    @CrAnKcHiLLaH Před rokem

    When is part 2 coming? Great video Wolfgang!

  • @dmodmodmodmo
    @dmodmodmodmo Před 2 lety

    Really god starting point for ansible.
    But, speaking for me, Is interesting the step of also scripting an installer

  • @heliophane
    @heliophane Před 2 lety

    wow. maybe i should learn this at some point

  • @ichnafi8512
    @ichnafi8512 Před 2 lety

    Great idea for a Video series. Please also explain your backup scripts. How to you handle data from services or docker-containers?

  • @kardashevr
    @kardashevr Před rokem +2

    still waiting for the part 2. Need it badly

  • @ProgressiveMech
    @ProgressiveMech Před 2 lety

    When’s the next part coming! Haha I’m sooo excited!!

  • @4790kusi
    @4790kusi Před rokem

    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.

  • @technicalsikh9261
    @technicalsikh9261 Před 2 lety

    awesome

  • @DerRofflers
    @DerRofflers Před 2 lety

    great video

  • @MogelBoom
    @MogelBoom Před 2 lety +12

    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 :)

  • @speedflam
    @speedflam Před 2 lety

    I guess I have to reinstall my server now !

  • @nekoill
    @nekoill Před 2 lety

    Обожаю твой канал

  • @danielsabirov9439
    @danielsabirov9439 Před 2 lety

    Спасибо вам за видео, рад услышать твой голос!!!

  • @GiffysChannel
    @GiffysChannel Před 2 lety

    I appreciate the Golden Boy clips lol

  • @mabscottsville28
    @mabscottsville28 Před 2 lety

    Thank you for this. Part 2 when?

  • @rejeangauthier2943
    @rejeangauthier2943 Před rokem

    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 !

  • @KronosaurusRex
    @KronosaurusRex Před rokem

    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.

  • @papakeks
    @papakeks Před 2 lety

    9:34 The Ansible Linter will punish you for that, Wolfgang! 👀

  • @WolfgangsChannel
    @WolfgangsChannel  Před rokem

    Ansible Home Server playlist: czcams.com/play/PLkxWXio1KmRoZd88WbrnSnQM5MJY5PjH2.html
    Code: github.com/notthebee/ansible_homeserver

    • @all_c1ear
      @all_c1ear Před rokem

      hi, thanks for videos. can you give the name of anime in 1:19

    • @WolfgangsChannel
      @WolfgangsChannel  Před rokem

      It's called 'Golden Boy'

  • @velvet7765
    @velvet7765 Před 2 lety

    nice patagonia shirt

  • @brunogama9346
    @brunogama9346 Před 2 lety

    Please Part2

  • @tinygriffy
    @tinygriffy Před 3 měsíci

    is there something like "reverse ansible" ? .. that can create a config from an installed system (preferably with a push of a (one!) button) ?

  • @hongotopiadada7574
    @hongotopiadada7574 Před 2 lety +1

    It's 5 month now, will there be a second video? I'd love to see it!

  • @Xac501
    @Xac501 Před 2 lety +1

    When is part 2 coming?

  • @grisemarster6012
    @grisemarster6012 Před 2 lety

    what would i do if i wanted to install xfce4 on arch with a playbook?

  • @faysalkhan8p
    @faysalkhan8p Před rokem

    How do I add the ssh-key passphrase variable??

  • @owlmostdead9492
    @owlmostdead9492 Před 2 lety

    Thumbs up for UTM

  • @balamuralireddy
    @balamuralireddy Před rokem

    What is the font family you're using? I like it very much

  • @wstrater
    @wstrater Před 2 lety

    You mentioned host_vars but put host specific configuration inside your inventory. Any reason why?

  • @Polderleo
    @Polderleo Před 2 lety

    Hey, great video! What is the name of the vscode theme you are using? or is it a custom made one?

  • @ThaLiquidEdit
    @ThaLiquidEdit Před 2 lety

    High quality video incoming!

  • @christiandassy8128
    @christiandassy8128 Před rokem

    Hello!! any news for part 2?

  • @xxninjaplankerxx
    @xxninjaplankerxx Před rokem

    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?

  • @phoenixbird09
    @phoenixbird09 Před 2 lety

    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  Před 2 lety +2

      basically, put your host-specific vars into host_vars/hostname/vars.yml

    • @christiandassy8128
      @christiandassy8128 Před 2 lety +1

      @@WolfgangsChannel Excellent video! Thanks! Quick question any ETA on part2? I really want to continue growing my playbooks!

  • @maetnesstimtam5933
    @maetnesstimtam5933 Před rokem

    Part 2 inc? :)

  • @HugoParedes
    @HugoParedes Před 2 lety +1

    Why not use handlers for restarting SSH? To keep things simple?

    • @WolfgangsChannel
      @WolfgangsChannel  Před 2 lety +1

      Definitely! Planned to talk about handlers in a future video

  • @VS-oi2wv
    @VS-oi2wv Před 2 lety

  • @BrianThomas
    @BrianThomas Před 11 dny

    A 13 min deep dive. How deep can you go in 13 minutes

  • @deandre1988
    @deandre1988 Před rokem

    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

  • @NeuroGamer
    @NeuroGamer Před 2 lety +1

    #goodshit

  • @uziboozy4540
    @uziboozy4540 Před 2 lety

    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.

  • @SenthilBabuji
    @SenthilBabuji Před 2 lety

    Is enabling password less sudo safe? Whey not just create variables for ansible_become_password in the vault for every host?

    • @WolfgangsChannel
      @WolfgangsChannel  Před 2 lety +1

      You're free to use password-ful sudo on your machine and adjust the playbook accordingly

    • @SenthilBabuji
      @SenthilBabuji Před 2 lety

      @@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.

  • @arnjain
    @arnjain Před 2 lety +1

    Can you do one about docker

    • @WolfgangsChannel
      @WolfgangsChannel  Před 2 lety

      Docker in general or setting up Docker containers with Ansible?

    • @arnjain
      @arnjain Před 2 lety

      @@WolfgangsChannel Docker in general as I somehow cant wrap my head around it

  • @pasan.
    @pasan. Před 2 lety

    Alright, time to crawl out of the cave and turn my scattered linux install notes into an ansible playbook

  • @nevertwenty
    @nevertwenty Před 2 lety

    more

  • @__5036
    @__5036 Před 2 lety

    On your youtube homepage can you please include uploads, so that the most recent videos could be found on your youtube homepage

  • @Carlos-qi8er
    @Carlos-qi8er Před 2 lety

    The Virgin "ricing i3" vs The Chad "Business man reproducible building"