Тёмный

Getting Started with Ansible 08 - Improving your Playbook 

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

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

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@ipostwhateveriwant99
@ipostwhateveriwant99 3 года назад
this is insanely clear and perfectly taught
@terencecheatom8680
@terencecheatom8680 Год назад
Wow, condensing those plays down to one was very impressive, and most importantly clearly explained!!!
@awframpton
@awframpton 3 года назад
This is a well thought out and executed lesson!
@MarkusEicher70
@MarkusEicher70 Год назад
Very nice improvement with only one play and using the variables in the inventory file. I'm sure, there is another nifty solution to the pain to add the variables to every host in the inventory. Eager to continue with this great course. Thank you, Jay! 🤛
@abessesmahi4888
@abessesmahi4888 4 года назад
Thank you so much for this awesome series on Ansible.
@陳秉軒-c9b
@陳秉軒-c9b 4 года назад
Learning Ansible right now with the RH294 program, and they actually recommended declaring host-specific variables in another host_vars folder. Just throwing this out there, not judging. Great work.
@nahum35
@nahum35 4 года назад
Thanks Jay. this series is awesome!!!. love the way you explain things! keep up this awesome job.
@mathewkargarzadeh3158
@mathewkargarzadeh3158 3 года назад
Dear Jay, I loved it. what an incredible Ansible Series. Much appreciated!!. Thanks again. Mat.
@phillipcifone8974
@phillipcifone8974 Год назад
Thank you Jay! Really enjoying this series. Watching your videos and following along with all this cool stuff makes me feel like someday I might be able to become a system administrator.
@opeyemiojo1154
@opeyemiojo1154 Год назад
I wish I can like 👍 the video multiple times
@alanabreu8776
@alanabreu8776 2 года назад
your videos are great, thank you for them. I am enjoying them all and learning lots!
@sorin.n
@sorin.n 11 месяцев назад
Superb! This is the way to explain things. 👍
@davidtalturejman9185
@davidtalturejman9185 Год назад
Thank you man! Youre just awsome!! This content is so good Love it
@MVPMoe4ever
@MVPMoe4ever Год назад
Excellent. Thank you. so clearly explained.
@williamweiler236
@williamweiler236 2 года назад
Notice how many views you maintain throughout the playlist? excellently executed lessons.
@DanCalloway
@DanCalloway 4 года назад
Excellent! Ansible is a great admin tool for Sysadmins in a Linux shop.
@LearnLinuxTV
@LearnLinuxTV 4 года назад
Indeed it is!
@vnetpost
@vnetpost 3 года назад
Thanks Jay!
@djvincon
@djvincon 3 года назад
YOUR THE MAN
@JoshuaKersey
@JoshuaKersey 4 года назад
this is an excellent demo using the generic package module across various distributions when the package names vary. good job! keep sharing more. i'm surprised to see a demo using nano for YAML. VIM is a lot more flexible and better suited for YAML imo. I haven't watched the other videos yet (and plan too), perhaps you explained why you use one over the other. Not judging here, just commenting. thanks for sharing this series.
@sethoz22
@sethoz22 Год назад
Its a lot easier for someone to follow along step by step if he is using nano. Vim basically requires its own tutorial. Totally overkill for the scope of this series.
@balajirao8093
@balajirao8093 4 года назад
Nice explained !
@luke421
@luke421 2 года назад
te amo
@mihai6564
@mihai6564 2 года назад
good video. Thanks
@velipekkajutila9451
@velipekkajutila9451 3 месяца назад
there is an ansible_distribution_version == 'Ubuntu' in the first play that will never get matched. It should just say ansible_distribution == 'Ubuntu'
@bohrasdf
@bohrasdf 4 года назад
Huge thanks youre awesome
@furrane
@furrane 8 месяцев назад
Why is it that the "update_cache" parameters was left in the yml file and it's not a valid parameter for the package module yet ansible didn't fail ? Does ansible just silently ignores invalid parameters ? Can we force it to display at least a warning ?
@amirday2daychallenge
@amirday2daychallenge 3 года назад
Dear Jay, so far I love your video, the only point so far is that I didn't get how we can familiarize ourselves with Ansible commands. How do you know what you should use? I hope in the next video I can see it. Anyway thank you.
@amirday2daychallenge
@amirday2daychallenge 3 года назад
I think I already found that in min 11:00 you will show where to find what command we can use. tq again
@jester667
@jester667 3 года назад
I can't find the update_cache parameter for the package module. Is it some kind of hidden parameter which actually works? Great video and the whole series by the way. Thank you!
@marcusk.4189
@marcusk.4189 3 года назад
I expect this consolidation of tasks / plays to change the previous behaviour because of this missing parameter. While the old plays would have updated the packages in case of incoming updates, this module probably won't update any already installed package. This might or might not happen because of the missing documentation ¯\_(ツ)_/¯
@shaded_red
@shaded_red 3 месяца назад
So when you consolidate update cache and install package in the same task, does the update cache get executed first or does the install? Or does it depend on the order in which we write it in the playbook?
@wablo
@wablo 4 года назад
Do you add to this series a test the playbook with molecule?
@nampallyjagan5073
@nampallyjagan5073 Год назад
There is been one play only right from beginning .. but multiple tasks.. but you said 2 plays
@Manolete919
@Manolete919 Год назад
is this two plays or two tasks? Because I see one play with 2 tasks unless i am totally wrong
@-long-
@-long- 3 года назад
How come the code still run correctly, for example at 4:30, when you used ansible_distribution_version == "Ubuntu" (which is wrong). You can see the inconsistency in the file when both "ansible_distribution" and "ansible_distribution_version" refer to "Ubuntu" (the latter should have referred to the version number like 18.04 instead). Same with "CentOS".
@LinuxCloud79
@LinuxCloud79 Год назад
Yes correct and for that reason it skips the task for all hosts, as it doesn't meet the requirements. It should refer both the "ansible_distribution" variable. Probably, Jay didn't undo the changes when he tried to inform us that we can be very specific, as we can target e.g. CentOS but only specific versions e.g. 8.0.4 etc.
@daniele.contreras3590
@daniele.contreras3590 Год назад
That's correct, I noticed it was only on the update_cache section it skipped, I did that myself over the CentOS section and obviously it didn't work, not to blame Jay, he clearly showed before an example of both options, I remembered it the hard way after seeing it fail. He probably missed the fact that the update_cache section skipped and didn't fix it at the moment.
@Raj-si5yz
@Raj-si5yz 4 года назад
Thank you so much,could you pls make video on ansible role
@LearnLinuxTV
@LearnLinuxTV 4 года назад
That's already on the list. All the Ansible videos will debut before the end of the month, including that one.
@Raj-si5yz
@Raj-si5yz 4 года назад
@@LearnLinuxTV Thanks for valuable reply!
@harigpriya7
@harigpriya7 Год назад
I have added apache_package to inventory file but still when i execute the playbook it says variable is undefined.. i included debug task to see if variable is picked from inventory file.. it is showing variable is not defined.. how should i solve this issue
@samf8777
@samf8777 3 года назад
I noticed for the inventory file is in ini format what would be if I set up my inventory.yaml syntax?
@fabrice9848
@fabrice9848 Год назад
in this video and the previous one, you actually made a little mistake on the first task, you used "ansible_distirbution_version" instead of "ansible_distribution"
@adarshsingh764
@adarshsingh764 4 года назад
Can you compare the $5 linode machine with the ras pi 4?
@bpotter9182
@bpotter9182 3 года назад
New to computers
@smhhoseinee
@smhhoseinee 4 года назад
we decreased tasks from 6 to 2 as we could see in the results we see 2 instead of 6 now so now if one task fails , how could we find out which of these three failed (as it only shows 2 fields : the name and status ok or skipped or failed)?
@clebervaladares1
@clebervaladares1 2 года назад
you can use the "verbose" to check the possible errors $ ansible-playbook -i hosts install_ubuntu_apache.yml -K -vv the last argument "-vv" is verbose
@smhhoseinee
@smhhoseinee 2 года назад
@@clebervaladares1 tnx Cleber
@bpotter9182
@bpotter9182 3 года назад
Do you have info about Chromebook's
@bpotter9182
@bpotter9182 3 года назад
I'm very new to to computers.
Далее