Тёмный

Getting started with Ansible 07 - The 'when' Conditional 

Learn Linux TV
Подписаться 758 тыс.
Просмотров 72 тыс.
50% 1

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 1 (Introduction): linux.video/an...
Part 2 (SSH Overview & Setup): linux.video/an...
Part 3 (Setting up the Git Repository): linux.video/an...
Part 4 (Running Commands): linux.video/an...
Part 5 (Running Elevated Commands): linux.video/an...
Part 6 (Writing our First Playbook): linux.video/an...
Part 7 (This video)
Part 8 (Improving your Playbook): linux.video/an...
Part 9 (Targeting Specific Nodes): linux.video/an...
Part 10 (Tags): linux.video/an...
Part 11 (Managing Files): linux.video/an...
Part 12 (Managing Services): linux.video/an...
Part 13 (Adding Users & Bootstrapping): linux.video/an...
Part 14 (Roles): linux.video/an...
Part 15 (Host Variables): linux.video/an...
Part 16 (Templates): linux.video/an...
Wiki article for this video:
www.learnlinux...
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.lin...
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.lin...
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.lin...
🐦 Follow me on Twitter!
➡️ learnlinux.lin...
💬 Official LearnLinux.tv Community:
➡️ community.lear...
📖 Check out jay's latest book, Mastering Ubuntu Server 3rd Edition. Available now!
➡️ ubuntuserverbo...
👨 More about me:
➡️ www.jaylacroix...
➡️ www.learnlinux...
💽 How to create a bootable flash drive for installing Linux:
➡️ linux.video/fl...
🐧 Which distro do I use?
➡️ learnlinux.lin...
🔐 How to better secure OpenSSH:
➡️ linux.video/se...
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.lin...
#Ansible #Linux #LearnLinux

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@soyalvdev
@soyalvdev 2 года назад
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.
@MVPMoe4ever
@MVPMoe4ever Год назад
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.
@Johann75
@Johann75 2 месяца назад
Cool! Started to be creative with my small farm even before the end of the couse. Very usefull. Thank you.
@georgesmith9178
@georgesmith9178 2 года назад
Smashing T-shirt, Jay :). Thumbs-up just for the T-shirt, before watching the video :)
@hoangphuloctruong8433
@hoangphuloctruong8433 Год назад
So grateful for this useful series. Wish you all best things
@DrazenMarjanovic
@DrazenMarjanovic 11 месяцев назад
Thank you for this series 😊😊😊😊😊
@loren683
@loren683 6 месяцев назад
great series, thanks for sharing🤩
@davidtalturejman9185
@davidtalturejman9185 Год назад
Youre amazing !! Thank you for this series its really good and i find it so usefull!!
@hussamel-maghraby2077
@hussamel-maghraby2077 2 года назад
amazing shirt :], VGood tutorial!!!
@DanCalloway
@DanCalloway 4 года назад
Great addition to my learning of ansible. Awesome!
@ayeleru7489
@ayeleru7489 Год назад
love the shirt :)
@LudoArts
@LudoArts 4 года назад
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 "ansible_distribution_version" instead of "ansible_distibution" Appearantly it still works though ;-) Regards, Ludo
@ayencoscolfield3312
@ayencoscolfield3312 3 года назад
May be it didnt make any difference, lol
@sashosfhc
@sashosfhc 6 месяцев назад
It did make a difference, it works because both variables were correct - ansible_distribution == "CentOS" and ansible_distribution_version == "8.2", so both will work, even if you just specify one of them.
@bongkem2723
@bongkem2723 Год назад
great video, very simple yet useful, thanks man !!
@arghosinha1424
@arghosinha1424 11 месяцев назад
Nice T man, thanks for the videos.
@abessesmahi4888
@abessesmahi4888 4 года назад
Great content Thank you so much.
@БорисНайман
@БорисНайман Год назад
Brilliant 👍
@Ms.Robot.
@Ms.Robot. 3 года назад
You included so much other info, I totally missed the when condition.
@bryanpaget
@bryanpaget 4 года назад
Awesome!
@kjakobsen
@kjakobsen 3 года назад
I'm watching a video on ansible, and the most puzzling thing was: " How the f... did he cut and paste in nano?? ;-)
@osswriter
@osswriter 3 года назад
@kjakobsen If you look at the bottom of the editor, there is a list of commands you can use. The ^ character means CTRL. So, saving (Write Out) is CTRL + O, Cut text is CTRL+K and paste is CTRL+U. EDIT: At around 12:48 in the video, Jay marks text and then issues a copy and paste. I found a guide here, even with pictures included, apparently: www.tecmint.com/learn-nano-text-editor-in-linux/ in the section ”Copy/Paste/Cut Text in Nano”.
@mihai6564
@mihai6564 2 года назад
thanks a lot
@bilalhussain5916
@bilalhussain5916 2 года назад
Teach me anisble and git at the same time 🤣🤣
@nahum35
@nahum35 4 года назад
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.
@rohitnaidu4453
@rohitnaidu4453 3 года назад
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.
@danielstellmon5330
@danielstellmon5330 3 года назад
Apt then when feels backwards. I'm used to condition first.
@ayencoscolfield3312
@ayencoscolfield3312 3 года назад
Am still speechless
@Cytrencia
@Cytrencia 3 года назад
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...
@shivakarki6887
@shivakarki6887 2 года назад
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. )
@kajiokami22
@kajiokami22 3 года назад
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"}"?
@amirfadaghi6552
@amirfadaghi6552 10 месяцев назад
I finally figured why I am getting the error. the ansible version that comes with my aws amazon linux 2 does not support "when" module. I had to read the error msg so many times and test the without the when module. the ansible 08 does away with when module. hope this helps
@DivyamAzad
@DivyamAzad 3 года назад
How to specify centos passwd as it is different in centos than ubuntu
@GorditoCrunchTime
@GorditoCrunchTime 3 года назад
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"
@foo2332
@foo2332 3 года назад
I's just an unusual name for the master branch. Github has become 'woke' recently and in a fit of political correctness they changed the default name for the master branch from master to main and are also trying very hard to force this nonsense onto unsuspecting users, even going as far as renaming their user's existing local(!) branches without their consent, etc. You can still keep using the master branch if you do not let github create an empty default repostory for you and avoid executing their malicious code snippet when pushing your existing repository to github for the first time.
@talhajavaid2778
@talhajavaid2778 4 месяца назад
where did you setup these multiple servers?
@szablacraft9838
@szablacraft9838 Месяц назад
VirtualBox, VM tool to virtualize desktops
@MrDjegsi
@MrDjegsi 3 года назад
Hi, l have RedHat 8 and after watching this tutorrial httpd is not getting installed ? , how l can troubleshoot ?
@MrDjegsi
@MrDjegsi 3 года назад
It's ok. l have found where there was a problem , thanks
@heli_sport
@heli_sport 3 года назад
when: ansible_distribution == ["Debian", "Ubuntu", "Pop!_OS"] fails...Anyway to get popos in there? version 20.04
@dushkodavchev
@dushkodavchev 3 года назад
check the correct syntax. You should change == with in just like Jay show us from 09:11 to 09:50
Далее
У КОТЕНКА ПРОБЛЕМА?#cat
00:18
Просмотров 745 тыс.
I Built a SECRET Lamborghini Dealership!
33:02
Просмотров 8 млн
Linux New User Guide: 10 Things I Wish I Knew
23:31
Просмотров 464 тыс.
18 Weird and Wonderful ways I use Docker
26:18
Просмотров 229 тыс.
Ansible when conditional explained - Part 9
17:58
Просмотров 3,7 тыс.
Why I Can't Use Linux - My Top 3 Reasons
26:05
Просмотров 128 тыс.
This web UI for Ansible is so damn useful!
20:07
Просмотров 483 тыс.
100+ Linux Things you Need to Know
12:23
Просмотров 1,1 млн
Getting started with Ansible 11 - Managing Files
20:49
У КОТЕНКА ПРОБЛЕМА?#cat
00:18
Просмотров 745 тыс.