Skip to main content
AmigoFish

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.

Watch on YouTube

Not rated yet

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

Back to Learn Linux TV Β· Report a problem