Getting started with Ansible 04 - Running ad-hoc Commands

  Рет қаралды 138,260

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 91
@philipsheaff
@philipsheaff 4 жыл бұрын
This is the best beginner Ansible tutorial on the Internet.
@torgeirleirbakken896
@torgeirleirbakken896 Ай бұрын
I know this is an old Ansible series, but I'm loving it so far. Thanks so much for great content :-)
@DanCalloway
@DanCalloway 4 жыл бұрын
Great video series, Jay. The video, however, shows Part 3 rather than 4 at or around 00:34. Thought you may wish to correct. Thanks.
@ArbaazHussain17
@ArbaazHussain17 3 ай бұрын
You're one of the very few people who actually knows how to teach a certain topic. Thank you. If you can upload advance topics of ansible too it will be helpful.
@mathewkargarzadeh3158
@mathewkargarzadeh3158 3 жыл бұрын
one of the best Ansible Tutorial I have seen so far. I love the pace of teaching and material. my friend my hat off to you. much appreciated. Thanks again !!. Mat
@tomsbergman
@tomsbergman 2 ай бұрын
This course is well very well done. I like the pace and pausing to jump over to my Mac and see this in action is excellent. You are giving just the right amount of info to bring me up to speed on SSH, Git and Ansible. I'm running this on MacOS and so far I'm able to execute and keep up with all the stuff. However, I need to dive in to my Mac Mini (my guinea pig for running modules) tomorrow and get Xcode installed and do stuff that came back with the error message for ping and gather_facts. Just the fact I got output tells me I'm connected and running the module, so I count that as success, albeit, limited. I can't wait to get through the rest of the videos. And, when it is time to become a better expert Linux admin, if I ever need to, I know where to turn for good video just in time education.
@JoeKingstonS
@JoeKingstonS 2 жыл бұрын
This is got to be one of the best Ansible videos. I learned so much, and the lessons are straightforward to follow. I appreciate the hard work you put into making this video.
@juliengs
@juliengs 3 жыл бұрын
Thank you! It finally clicked! This is the best Ansible tutorial, hands down.
@fredrik354
@fredrik354 2 жыл бұрын
This is a great start for someone who hasn't even seen Ansible before. Highly appreciated!
@boulouizmohammed6827
@boulouizmohammed6827 3 жыл бұрын
Best Ansible tutorial thanks king, i had searched for a long time a good tutorial
@sagarvispute
@sagarvispute 2 жыл бұрын
Jay you are doing great job. Explaining things nicely & calmly… keep up good work…👍🏻
@getnq
@getnq 2 ай бұрын
Very well done, Jay! FYI, not a big deal, but at the bottom of the screen, the "Splash title" in "Getting started with Ansible 04 - Running ad-hoc Commands" at 0:36 shows the "Splash title" for the previous video, "Part 3 - Setting up the Git Repository".
@karthickram3804
@karthickram3804 Жыл бұрын
Best video to learn about Ansible
@nivedithav1087
@nivedithav1087 Жыл бұрын
This is the best tutorial on Ansible Thank you Jay
@underbelle2374
@underbelle2374 10 ай бұрын
Thank you for this content, Very simplified.
@mitupanigrahi7564
@mitupanigrahi7564 Жыл бұрын
I am glad to be a student of your Jay sir
@arghosinha1424
@arghosinha1424 Жыл бұрын
Thanks a lot, can't wait to check the next one.
@GaussscherEliminator
@GaussscherEliminator 11 ай бұрын
I just love it! Thank you so much for the whole tutorial!
@davidtalturejman9185
@davidtalturejman9185 Жыл бұрын
Thank you man. Youre just amazing. I really enjoy your videos, great teaching
@Practical-IT
@Practical-IT 4 жыл бұрын
Another great video in this series. Thanks so much!
@UdokaOnwuagba
@UdokaOnwuagba 3 ай бұрын
Thanks a lot for this lesson. I'm a bit confused about the "keyfile". kindly explain which of the keyfile you are talking about
@sussusamogus7831
@sussusamogus7831 Жыл бұрын
Great guide Jay
@Cyko359
@Cyko359 6 ай бұрын
Awesome tutorial, Thank you!!
@juancarlosaristizabal4838
@juancarlosaristizabal4838 2 жыл бұрын
the best videos linux, Thanks so much!!!
@oscarflorez2011
@oscarflorez2011 2 ай бұрын
thanks foryour complete course :)
@fabrice9848
@fabrice9848 Жыл бұрын
Great job Jay! Thaaaaank you.
@vialomur__vialomur5682
@vialomur__vialomur5682 Жыл бұрын
Thanks a lot for those videos!
@yavor1
@yavor1 9 ай бұрын
Nice work on the videos! To enhance clarity, please keep the top and bottom lines of the video free from text. This will help ensure important content is visible when pausing the video.
@RaspberryTech
@RaspberryTech 3 жыл бұрын
Yes I will click that like button, this content is great!
@ДмитроЖигалкін
@ДмитроЖигалкін Жыл бұрын
Thanks. Marvelous.
@angelogoncalvesdias4504
@angelogoncalvesdias4504 2 жыл бұрын
Excellent!. I have a doubt. Since we have established the trust relationship among the servers, why should I pass the --key-file as a command argument? The ansible command will work without it.
@agroleau04
@agroleau04 4 жыл бұрын
Awesome content, thanks Jay!
@Washout001
@Washout001 8 ай бұрын
For anyone confused on the 'git push origin master' not working, think they've changed it to 'main' and not 'master' now for new repositories
@harunaadoga
@harunaadoga Жыл бұрын
Thank you!
@dommbrown
@dommbrown 2 жыл бұрын
Love ya work. Have you ever had a look at Semaphore for Ansible? How about a tutorial on it you have come across it before?
@MohammadGholami-rb5xx
@MohammadGholami-rb5xx 2 жыл бұрын
great tutorial. thanks a million
@davidtalturejman9185
@davidtalturejman9185 Жыл бұрын
Amazing! Wow
@SilentSolution
@SilentSolution 3 жыл бұрын
Thanks for your information sir
@mdbarin2014
@mdbarin2014 10 күн бұрын
Thanks a lot
@gurudattanadig307
@gurudattanadig307 3 жыл бұрын
Awesome content.
@goldmuma
@goldmuma 3 жыл бұрын
thank you very much for your work
@learner90
@learner90 Жыл бұрын
Kindly make a series on terraform!
@vnetpost
@vnetpost 3 жыл бұрын
Thanks jay!
@balloney2175
@balloney2175 2 жыл бұрын
Very cool!
@mihai6564
@mihai6564 2 жыл бұрын
thank you for the video
@GOOD_kidVSSATAN
@GOOD_kidVSSATAN Жыл бұрын
very good
@drewskiidub7640
@drewskiidub7640 2 жыл бұрын
Your awesome!!!!!!!!
@kiki-vu9if
@kiki-vu9if 2 жыл бұрын
you're awesome!
@petersoderstrom857
@petersoderstrom857 3 жыл бұрын
I thank you!
@mrAmal45
@mrAmal45 11 күн бұрын
7:35 if it is actual making real connection, where is the username mentioned for ssh ?
@hamidja1537
@hamidja1537 Жыл бұрын
First, thanks for the amazing content. I am having one question: Was wondering why we are using the private key in this command (06:05)? Before creating the ansible.cfg file, I removed the private key file, and executed it, and it was working: ansible all -i inventory -m ping Does anyone know why?
@lukerand
@lukerand Жыл бұрын
Maybe you have a second keypair that doesn't have a passphrase attached?
@automationlearner2253
@automationlearner2253 2 жыл бұрын
when i do ansible ping command its come with success result as expected but when i do ansible list-hosts or gather_facts commands its showing nothing has been connected means no server is been connected ..can you help me to fix this why is so happening
@automationlearner2253
@automationlearner2253 2 жыл бұрын
i fixed it ..needed to first create ansible.cfg then it got connected using same commands
@dvn8ter
@dvn8ter 11 ай бұрын
⭐️⭐️⭐️⭐️⭐️
@carloslizarralde4920
@carloslizarralde4920 4 жыл бұрын
why or what is the diff of apt OS ansible vs other pip ansible?
@HariHaran-xv9fp
@HariHaran-xv9fp Жыл бұрын
what is the --key-file .. instead of that why can't we just do ansible all -m ping
@kimotroph9683
@kimotroph9683 3 жыл бұрын
Great tutorial 👌. Sometimes the presentation is ruined for me by a heavy east Indian accent that doesn't sound to me like English.. your delivery was well paced and intelligible
@grahammccann8554
@grahammccann8554 3 жыл бұрын
Thank Jay :-)
@rwm0268
@rwm0268 3 жыл бұрын
gather_facts isn't working for me. It looks like that module might have been replaced with the setup module.
@lindas.4376
@lindas.4376 3 жыл бұрын
It works for me.
@rwm0268
@rwm0268 3 жыл бұрын
@@lindas.4376 You must be running a different version.
@Nicklarose
@Nicklarose 3 жыл бұрын
it does not work for me either. If I run it from /etc/ansible/ it does work though. Trying to figure that out now
@TheBoomh
@TheBoomh 2 жыл бұрын
Rodney's correct. For those having issues, replace gather_facts with setup: ansible all -m setup Per redhat's documentation, ansible facts are only retrieved when working with playbooks, else you'll want to use setup module when using ad-hoc commands
@automationlearner2253
@automationlearner2253 2 жыл бұрын
@rodney mcbride i am also having same issue with gather_facts and list-hosts both commands ...did u fix it ? if so then please can u help me with that also
@NSXLA
@NSXLA 4 жыл бұрын
can't run ansible from home dir. i get error "module_stderr": "Shared connection to 192.168.1.19 closed. ", "module_stdout": "/bin/sh: /usr/bin/python: No such file or directory ", "msg": "MODULE FAILURE", also i can only use sudo from /etc/ansible and it pings fine - and had to add [centm-hosts:vars] ansible_python_interpreter=/usr/bin/python3 to host file to get connection.
@blahblahblahblah2933
@blahblahblahblah2933 4 жыл бұрын
python not installed or no symlink to the appropriate binary? What distros did this happen on ?
@GuillermoPradoObando
@GuillermoPradoObando 4 жыл бұрын
Install the same version of python on the remote server "192.168.1.19" that ansible host has.
@Glatze603
@Glatze603 4 жыл бұрын
add "ansible_python_interpreter=/usr/bin/python3" to the end of your inventory file
@LeeRaymondCM
@LeeRaymondCM 4 жыл бұрын
I did an "apt update" right before "apt install ansible" and still it ended up installing Ansible 2.5 and all sorts of strange message came up. I google ansible installation and added an extra repository and did installation again - ended up with Ansible 2.9 and everything works like what Jay showed. edit: these are the commands I found: $ sudo apt install software-properties-common $ sudo apt-add-repository --yes --update ppa:ansible/ansible $ sudo apt install ansible
@NameCallingIsWeak
@NameCallingIsWeak 3 жыл бұрын
2:40 create inventory
@GC-qe8vc
@GC-qe8vc 2 жыл бұрын
Thank you for the video series. A little suggestion: there's no need to say "go ahead and (verb)" all the time. Just use the verb. Example: instead of "going ahead and typing the IP adresses", just say "I will now type...". "Going ahead" is KZbinr-speak and becomes annoying once you notice it (just like "smashing the like button")...
@raginibhayana
@raginibhayana 10 ай бұрын
i am very confused right now
@diogocorreia4862
@diogocorreia4862 Жыл бұрын
Review: The intro image it's not correct
@subho1766
@subho1766 3 жыл бұрын
Boy, that CentOS advt. aged like milk.
@user-yh8ce7tg8l
@user-yh8ce7tg8l 4 ай бұрын
til-d-ah, not til-d-ee
@tonyl4839
@tonyl4839 3 жыл бұрын
Hi Jay, Great Series on Ansible!! Watch the entire series first time around and now getting to hands-on... Running into issue running the command "ansible all --key-file ~/.ssh/ansible -i inventory -m ping I get the error "ansible: error: no such option: --key-file" ....has the option for specifying which SSH key been deprecated?? Kindly help
@bhaktisn888
@bhaktisn888 4 ай бұрын
this is an amazing playlist I had a problem after running this command snb@ubuntu:~/bhakti$ ansible all --key-file ~/.ssh/ansible -i inventory -m ping ***.***.**.*** | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: ***.***.**.* Permission denied (publickey,password).", "unreachable": true }
@user-yh8ce7tg8l
@user-yh8ce7tg8l 4 ай бұрын
Verify the key file is actually working first # ssh -i ~/.ssh/ansible
@vixx1497
@vixx1497 Ай бұрын
@@user-yh8ce7tg8l I got that far and was asked for a password for the connection. I had set up the ansible key without a passphrase as per the tutorial, is this maybe caused by a username mismatch between the servers and control node?
@vixx1497
@vixx1497 Ай бұрын
As an update, I'm able to SSH into the servers with the Ansible key via terminal without passphrase by specifying a username on the server, this is not something you could realistically do in bulk without having the same username as your control node on every server. I will attempt to add usernames to the addresses in the inventory file to see if that will solve my issue.
@vixx1497
@vixx1497 Ай бұрын
Adding the username to the hosts in the inventory file worked, the syntax is the same as using SSH manually so @
@lucasboglione
@lucasboglione Жыл бұрын
Thank you!!
@pedronrivera22
@pedronrivera22 3 жыл бұрын
Thank you!!!
Getting started with Ansible 05 - Running elevated ad-hoc Commands
17:23
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 488 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 14 МЛН
Watermelon magic box! #shorts by Leisi Crazy
00:20
Leisi Crazy
Рет қаралды 118 МЛН
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,4 МЛН
Linux New User Guide: 10 Things I Wish I Knew
23:31
Learn Linux TV
Рет қаралды 469 М.
7 Apps Better Than The Defaults Your Distro Ships
12:43
DistroTube
Рет қаралды 84 М.
Getting started with Ansible 06 - Writing our first Playbook
20:54
Learn Linux TV
Рет қаралды 104 М.
Don't use Hyprland without these AMAZING tools | Hyprland EP 2
23:00
Структура файлов и каталогов в Linux
20:28
Aleksey Samoilov
Рет қаралды 407 М.
Things I wish I knew about Ansible from day 1
10:58
Michael Crilly
Рет қаралды 5 М.
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 880 М.
Problems You will Encounter on Linux (and How to Solve Them)
23:01
Rob Braxman Tech
Рет қаралды 103 М.
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 14 МЛН