Ansible for Complete Beginners: Creating Your First Playbook
From Learn Linux TV Β· Β· 26 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
π§ *Grab my "New To Linux" Bundle for expert guidance on ditching Windows or macOS* π https://learnlinux.link/new2linux
π¨ *40% OFF Linux Foundation Courses & Certifications - Ends Nov 20!* π Use code 40KUBE26 π https://learnlinux.link/get-certified
Ansible lets you configure a server once, write it down, and never do it by hand again. In this tutorial weβll build your first playbook from scratch - then run it with ansible-pull, which I think is the better way to use Ansible for most setups.
Weβll create a git repository to hold the playbook, write it step by step, break the settings out into a variables file, then SSH into a Linode server, install Ansible, and let the machine pull its own configuration and apply it. No control node, no inventory file to babysit.
By the end youβll have a working, version-controlled setup that any new server can configure itself from in one command.
βοΈ My full-length Ansible Course is here β https://learnlinux.link/ansible
π The code used in this video is here β https://learnlinux.link/ansible-pull-repo
*π Latest Courses & Books* - *Ditch Microslop - Switch To Linux With My Latest Book* - https://learnlinux.link/ditch-windows - *Grab My Linux Troubleshooting Strategies e-book* - https://learnlinux.link/troubleshooting-ebook - *Learn Ansible With My Professional Course* - https://linux.video/ansible - *Master Linux With My Other Courses* - https://learnlinux.link/courses
*π If This Video Helped You Out, Consider Supporting Me* - *Grab Some Linux Swag* - https://merch.learnlinux.tv - *Support Me On Patreon* - https://learnlinux.link/patron - *Set Up Your Own Learning Lab With Linode* - https://learnlinux.link/linode
*π Time Codes* 00:00 - Intro 01:19 - Enjoy ad-free Linux videos! 03:04 - Setup: Creating Our Git Repository for Ansible 04:42 - Writing Your First Ansible Playbook (Step by Step) 17:23 - Ansible Variables: Creating a vars File 19:55 - Check out my full-length Ansible course! 21:33 - ansible-pull vs ansible: Why Pull Wins 22:10 - SSH into a Linode Cloud Server 23:06 - How to Install Ansible on Linux 23:53 - Running the Playbook with ansible-pull
*π More About Learn Linux TV* - *Official website* - https://www.learnlinux.tv - *Community Forums* - https://community.learnlinux.tv - *Official Subreddit* - https://learnlinux.link/reddit - *Facebook Community* - https://learnlinux.link/facebook-group - *Need Professional Linux Assistance?* - https://learnlinux.link/help - *More about Jay* - https://learnlinux.link/jay
*π€ Affiliate and Content Ethics* Some links in this description are affiliate links. If you purchase through them, Learn Linux TV may earn a commission at no additional cost to you. This helps keep the content flowing. - https://www.learnlinux.tv/content-ethics
*β οΈ Use Content Responsibly* Learn Linux TV shares technical content intended to teach and help you, but it comes with no warranty. The channel is not liable for damages resulting from its use. Always ensure you have proper permission, follow organizational policies, protect important data, and comply with applicable laws.
#Ansible #DevOps #Automation