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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ค. 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 120

  • @michaelvilain8457
    @michaelvilain8457 2 ปีที่แล้ว +55

    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 ปีที่แล้ว +32

    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 ปีที่แล้ว +16

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

  • @unknown_channel_name
    @unknown_channel_name 2 ปีที่แล้ว +6

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

  • @_radu
    @_radu 2 ปีที่แล้ว +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 2 ปีที่แล้ว +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

  • @rodrovelasquez1634
    @rodrovelasquez1634 2 ปีที่แล้ว +5

    This series is going to be amazing, thank you

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

  • @darrenehrlich6482
    @darrenehrlich6482 2 ปีที่แล้ว

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

  • @eliebrosset2387
    @eliebrosset2387 2 ปีที่แล้ว +1

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

  • @EVL624
    @EVL624 2 ปีที่แล้ว

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

  • @notapplicable971
    @notapplicable971 2 ปีที่แล้ว +1

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

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

  • @machinainc5812
    @machinainc5812 2 ปีที่แล้ว +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.

  • @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 😂

  • @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 !

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

  • @blevenzon
    @blevenzon 2 ปีที่แล้ว

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

  • @MarcinSzklany
    @MarcinSzklany 2 ปีที่แล้ว

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

  • @mroell
    @mroell 2 ปีที่แล้ว +6

    Awesome can’t wait for part 2

  • @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. Вульфганг красавчик

  • @igielv
    @igielv 2 ปีที่แล้ว

    Amazing staff!!! Nicely explained! 👍

  • @AkumaNoKuma
    @AkumaNoKuma ปีที่แล้ว +1

    excited for part 2

  • @jesperkorsen1111
    @jesperkorsen1111 2 ปีที่แล้ว

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

  • @sidneyking11
    @sidneyking11 2 ปีที่แล้ว +1

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

  • @hcjkruse
    @hcjkruse 2 ปีที่แล้ว

    Compliments Nice to to point video for a quick overview.

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

  • @BorisGrishenco
    @BorisGrishenco 2 ปีที่แล้ว

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

  • @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!

  • @maarten1012TTT
    @maarten1012TTT 2 ปีที่แล้ว

    Perfect timing! Thanks!

  • @darkusboy1
    @darkusboy1 2 ปีที่แล้ว

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

  • @brightonsikarskie8372
    @brightonsikarskie8372 ปีที่แล้ว

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

  • @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 🔥

  • @kr0gan105
    @kr0gan105 2 ปีที่แล้ว

    Can't wait for episode 2.

  • @timmy-159
    @timmy-159 2 ปีที่แล้ว

    Amazing video. thank you!

  • @MogelBoom
    @MogelBoom 2 ปีที่แล้ว +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 :)

  • @abhisheksah
    @abhisheksah 2 ปีที่แล้ว

    so glad wolfgang is back

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

  • @tredonlinder2543
    @tredonlinder2543 2 ปีที่แล้ว

    Thank you very much for great tutorial

  • @whylde7834
    @whylde7834 2 ปีที่แล้ว

    This is great! I appreciate this.

  • @TurntableTV
    @TurntableTV 2 ปีที่แล้ว

    You are a legend, sir! 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 ;)

  • @dpsfitness7375
    @dpsfitness7375 ปีที่แล้ว

    Ok this is amazing.

  • @SirDAFF1
    @SirDAFF1 ปีที่แล้ว

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

  • @Behnam_Moghaddam
    @Behnam_Moghaddam 2 ปีที่แล้ว

    perfect timing!

  • @kardashevr
    @kardashevr ปีที่แล้ว +2

    still waiting for the part 2. Need it badly

  • @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?

  • @yasser-cifer8175
    @yasser-cifer8175 2 ปีที่แล้ว

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

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

  • @heliophane
    @heliophane 2 ปีที่แล้ว

    wow. maybe i should learn this at some point

  • @aedankerr1358
    @aedankerr1358 2 ปีที่แล้ว

    yesss, i wanted to recreate your server. POG

  • @ProgressiveMech
    @ProgressiveMech 2 ปีที่แล้ว

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

  • @salvabasketmalvin
    @salvabasketmalvin 2 ปีที่แล้ว

    Nice video!

  • @CrAnKcHiLLaH
    @CrAnKcHiLLaH ปีที่แล้ว

    When is part 2 coming? Great video Wolfgang!

  • @dmitriollariischimji2910
    @dmitriollariischimji2910 2 ปีที่แล้ว

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

  • @danielsabirov9439
    @danielsabirov9439 2 ปีที่แล้ว

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

  • @DerRofflers
    @DerRofflers 2 ปีที่แล้ว

    great video

  • @mabscottsville28
    @mabscottsville28 2 ปีที่แล้ว

    Thank you for this. Part 2 when?

  • @technicalsikh9261
    @technicalsikh9261 ปีที่แล้ว

    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.

  • @GiffysChannel
    @GiffysChannel 2 ปีที่แล้ว

    I appreciate the Golden Boy clips lol

  • @speedflam
    @speedflam 2 ปีที่แล้ว

    I guess I have to reinstall my server now !

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

  • @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 !

  • @papakeks
    @papakeks 2 ปีที่แล้ว

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

  • @tinygriffy
    @tinygriffy 26 วันที่ผ่านมา

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

  • @brunogama9346
    @brunogama9346 2 ปีที่แล้ว

    Please Part2

  • @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??

  • @hongotopiadada7574
    @hongotopiadada7574 ปีที่แล้ว +1

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

  • @Polderleo
    @Polderleo 2 ปีที่แล้ว

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

  • @velvet7765
    @velvet7765 2 ปีที่แล้ว

    nice patagonia shirt

  • @balamuralireddy
    @balamuralireddy ปีที่แล้ว

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

  • @wstrater
    @wstrater 2 ปีที่แล้ว

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

  • @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?

  • @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 ปีที่แล้ว +2

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

    • @christiandassy8128
      @christiandassy8128 2 ปีที่แล้ว +1

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

  • @ThaLiquidEdit
    @ThaLiquidEdit 2 ปีที่แล้ว

    High quality video incoming!

  • @owlmostdead9492
    @owlmostdead9492 2 ปีที่แล้ว

    Thumbs up for UTM

  • @Xac501
    @Xac501 ปีที่แล้ว +1

    When is part 2 coming?

  • @VS-oi2wv
    @VS-oi2wv 2 ปีที่แล้ว

  • @WolfgangsChannel
    @WolfgangsChannel  ปีที่แล้ว

    Ansible Home Server playlist: th-cam.com/play/PLkxWXio1KmRoZd88WbrnSnQM5MJY5PjH2.html
    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'

  • @HugoParedes
    @HugoParedes 2 ปีที่แล้ว +1

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

    • @WolfgangsChannel
      @WolfgangsChannel  2 ปีที่แล้ว +1

      Definitely! Planned to talk about handlers in a future video

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

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

  • @NeuroGamer
    @NeuroGamer 2 ปีที่แล้ว +1

    #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 ปีที่แล้ว +1

      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.

  • @maetnesstimtam5933
    @maetnesstimtam5933 ปีที่แล้ว

    Part 2 inc? :)

  • @christiandassy8128
    @christiandassy8128 ปีที่แล้ว

    Hello!! any news for part 2?

  • @pasan.
    @pasan. 2 ปีที่แล้ว

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

  • @arnjain
    @arnjain 2 ปีที่แล้ว +1

    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

  • @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 ปีที่แล้ว +1

      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"