Getting started with Ansible 07 - The 'when' Conditional

preview_player
Показать описание
Ansible is an incredible configuration management and provisioning utility that enables you to automate all the things. In this series, you'll learn everything you need to know in order to use Ansible for your day-to-day administration duties. In video #7, we take a look at differentiating our playbook based on the distribution of the target.

Full series:
Part 7 (This video)

Wiki article for this video:

🙌 Support me on Patreon and get early access to new content!

🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):

💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):

🐦 Follow me on Twitter!

📖 Check out jay's latest book, Mastering Ubuntu Server 3rd Edition. Available now!

👨 More about me:

💽 How to create a bootable flash drive for installing Linux:

🐧 Which distro do I use?

🔐 How to better secure OpenSSH:

☁️ How to create a cloud Linux server with Linode:

#Ansible #Linux #LearnLinux
Рекомендации по теме
Комментарии
Автор

I love to learn best practices from the beginning to get used to work properly to face a real job with confidence. Thanks for that. After the job is done, you git it. Just like breathing, you just do it.

soyalvdev
Автор

Thank you thank you for making this so simple and clear. I love the pace and clarifications of what all the modules and abbreviations mean. Best video on Ansible so far.

MVPMoeever
Автор

Smashing T-shirt, Jay :). Thumbs-up just for the T-shirt, before watching the video :)

georgesmith
Автор

Cool! Started to be creative with my small farm even before the end of the couse. Very usefull. Thank you.

Johann
Автор

So grateful for this useful series. Wish you all best things

hoangphuloctruong
Автор

Hi Jay, great tutorial again! Kudos!
There's a little flaw in this video though. On the steps in de playbook where you update_cache, you are testing against instead of "ansible_distibution"
Appearantly it still works though ;-)
Regards, Ludo

LudoArts
Автор

Youre amazing !! Thank you for this series its really good and i find it so usefull!!

davidtalturejman
Автор

great video, very simple yet useful, thanks man !!

bongkem
Автор

Great addition to my learning of ansible. Awesome!

DanCalloway
Автор

You included so much other info, I totally missed the when condition.

Ms.Robot.
Автор

Hey there Jay, thanks for the great video!!!, i was wondering if you can elaborate on how to add Centos 8 machine to the Ansible that i have on my Ubuntu 18.04.

nahum
Автор

I'm watching a video on ansible, and the most puzzling thing was: " How the f... did he cut and paste in nano?? ;-)

kjakobsen
Автор

Sir, I know when condition in runbook what it will do .. but my question was like when: {how to know here what to write} from ansible facts we have to choose.

rohitnaidu
Автор

Hello sir, How do I compare if variable passed as a parameter exists in (output stored in) register? The register: policies (is in json format. )

shivakarki
Автор

How can I create multiple VM with static IP's in Windows10 with VirtualBox just like in this series? Tried but couldn't make it...

Cytrencia
Автор

Is there a difference between "git push origin main" and "git push origin master"? I noticed in earlier videos you went with "main" and now it's "master"

GorditoCrunchTime
Автор

Teach me anisble and git at the same time 🤣🤣

bilalhussain
Автор

Is anyone else getting the error "fatal: [10.0.0.21]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (dnf) module: when Supported parameters include: allow_downgrade, autoremove, bugfix, conf_file, disable_excludes, disable_gpg_check, disable_plugin, disablerepo, download_dir, download_only, enable_plugin, enablerepo, exclude, install_repoquery, install_weak_deps, installroot, list, lock_timeout, name, releasever, security, skip_broken, state, update_cache, update_only, validate_certs"}"?

Pault
Автор

Hi, l have RedHat 8 and after watching this tutorrial httpd is not getting installed ?, how l can troubleshoot ?

MrDjegsi
Автор

Apt then when feels backwards. I'm used to condition first.

danielstellmon