Getting started with Ansible 05 - Running elevated ad-hoc Commands

  Рет қаралды 96,355

Learn Linux TV

Learn Linux TV

Күн бұрын

Пікірлер: 62
@osielramirez7274
@osielramirez7274 3 жыл бұрын
These videos are gold, they'll make launching testing environments so much easier and faster. Thank you for making these!
@carloslizarralde4920
@carloslizarralde4920 3 жыл бұрын
so far this is the best series adds all the missing parts needed to really understand the tools that will help.
@mysticjoe295
@mysticjoe295 3 жыл бұрын
While this is good, check out Jeff Geerlings ansible 101 series - far more comprehensive and supports an excellent book.
@jagd1691
@jagd1691 3 ай бұрын
Excellent Explanation. Best Video about Ansible on KZbin
@farkhodazizov4199
@farkhodazizov4199 Жыл бұрын
Thank you so much. God bless you and your family.
@UnknownSend3r
@UnknownSend3r 3 жыл бұрын
Brilliant explanation , imo you're the jay z of config management tutorials.
@MarkusEicher70
@MarkusEicher70 2 жыл бұрын
Thanks a lot Jay, that was pretty exciting. One thing I hope we will see later on in this series is how to use elevated privileges when the servers have different passwords for sudo. Great lessons so far! 👍
@similoluwaokunowo5127
@similoluwaokunowo5127 Жыл бұрын
I am currently on the 6th video in this series, and I must say you are a very incredible teacher. It takes a lot of effort and kindness to design such a structured course and publish it for free. Thank you very much 💗
@LearnLinuxTV
@LearnLinuxTV Жыл бұрын
Wow, thank you! I really appreciate that.
@RakeshShivayyaGuttedar
@RakeshShivayyaGuttedar Жыл бұрын
This tutorial is absolutely more valuable than paid courses out there.Thank you for all your efforts !!
@isaacmaag1294
@isaacmaag1294 3 жыл бұрын
Love the tutorial. Could you make a terraform series as well?
@davidraymond7420
@davidraymond7420 4 жыл бұрын
Nice video Jay, I’m totally new at Ansible, and I can see the potential to help me as sysadmin for my linux farm I need to managed. Thanks for sharing this 👍👌
@mathewkargarzadeh3158
@mathewkargarzadeh3158 3 жыл бұрын
Very Nice Jay. Thanks a million !!. Mat.
@Awas79
@Awas79 2 жыл бұрын
Absolutely love this series :D
@brodierobson4490
@brodierobson4490 2 жыл бұрын
This is amazing content.
@michaelfisher2821
@michaelfisher2821 Жыл бұрын
Great series so far, really easy to follow along in a lab. Also, does anyone else think Jay has a 'Better Call Saul' voice?
@vialomur__vialomur5682
@vialomur__vialomur5682 Жыл бұрын
such a great tutorial!
@dzonsmit
@dzonsmit 10 ай бұрын
9:51 same here but I didn't install tmux previously, I guess it came preinstalled with my ubuntu servers 22.04. btw I would like to see Kubernetes series on your channel!
@beydoin
@beydoin 3 жыл бұрын
Great video! Thank you!
@mlskksl
@mlskksl 3 ай бұрын
At 3mins you said it should have returned with error but mine has the same success output with "- - become - -ask-become-pass" and without the longoptions
@luistheitguy
@luistheitguy 2 жыл бұрын
Great ! Awesome teacher !
@andromachirozaki5753
@andromachirozaki5753 3 ай бұрын
amazing
@asaf158
@asaf158 4 жыл бұрын
Great Ansible tutorial
@jeffreyhiggason4004
@jeffreyhiggason4004 2 жыл бұрын
At 15:22 you show the command sudo apt dist-upgrade. Wouldn't the command be sudo apt-get dist-upgrade or sudo apt full-upgrade???? I didn't think that apt dist-upgrade would even work but obviously in your video it is...??
@portiseremacunix
@portiseremacunix Жыл бұрын
Does your book cover this series?
@brishavkuikel684
@brishavkuikel684 6 ай бұрын
Hi Jay !! I am using my main machine (wsl ubuntu on Win 11 ) as the workstation and using virtual box I have created a host VM. In my case without specifying -u i cannot connect to host, but you are not specifying any particular user and it is still able to connect to the host why is that ? pls help someone
@davetweens7687
@davetweens7687 5 ай бұрын
Jay is the user he used on all 4 hosts. The default user in ssh is the current user .
@davetweens7687
@davetweens7687 5 ай бұрын
You can use ~/ssh/config to set helpful defaults
@grahammccann8554
@grahammccann8554 3 жыл бұрын
Thank you Jay, :-)
@PS3456
@PS3456 3 жыл бұрын
Jay- Great video and simple explanation. Question: Where do you get various -a parameters?
@mysticjoe295
@mysticjoe295 3 жыл бұрын
Check the ansible docs. What he doesn’t explicitly show or explain is the -a params are the param: from the docs look at 6:50
@harunaadoga
@harunaadoga Жыл бұрын
Thank you!
@kiki-vu9if
@kiki-vu9if 2 жыл бұрын
great teacher!
@quidquopro1185
@quidquopro1185 6 ай бұрын
Is it not better to setup an ansible user on the servers that are allowed to run escalated commands?
@DrazenMarjanovic
@DrazenMarjanovic Жыл бұрын
Thanks a lot
@glmchn
@glmchn 4 жыл бұрын
Still awesome
@omarshararhussein7705
@omarshararhussein7705 Жыл бұрын
when I run ansible all -m apt -a update_cache=true --become --ask-become-pass i get WARNING updating cache and auto-installing missing dependency python apt followed by a failed error? any ideas anyone?
@paragb2008
@paragb2008 2 жыл бұрын
Good video
@CodeCraftedByLucas
@CodeCraftedByLucas Ай бұрын
Hi everyone I decided to make adduser server1, server2 and server3 with the same ip address on same ubuntu setup I think. When you run the "ansible all -m apt -a upgrade=dist --become --ask-become-pass" on the main UNIX user it cannot do that for all because the apt-get update is already running for one server so it will only run for server1 but not for the other server2 and 3 since only one dist update can be installed at once. You could run separately "ansible server1@192.168.x.x -m apt -a upgrade=dist --become --ask-become-pass". I wanted to share this for those who are interested.
@mihai6564
@mihai6564 2 жыл бұрын
nice video
@DavidBenOtto
@DavidBenOtto Жыл бұрын
What's the name of the tool you're using to navigate between servers?
@davetweens7687
@davetweens7687 5 ай бұрын
Tmux
@abibatadesina4412
@abibatadesina4412 2 жыл бұрын
Thank you for the wonderful video series. what is sudo password please?
@osada96
@osada96 Жыл бұрын
I wonder if there is any way to run that ad-hoc commands by using cron with -- become --become-ask-pass? In other words, how to cron all these commands without manual entering passwords?
@davetweens7687
@davetweens7687 5 ай бұрын
Yes but you can use an ssh key with no passphrase direct to the root user and not use becomes or sudo at all which is a security risk.
@davetweens7687
@davetweens7687 5 ай бұрын
I'm sure that you can use some sort of credentials on ansible too but I'm not an ansible expert. Which is why I'm watching these videos 😊
@davetweens7687
@davetweens7687 5 ай бұрын
I think the link above is what you eant
@NameCallingIsWeak
@NameCallingIsWeak 3 жыл бұрын
Great series, thank you. Minor quibble, if you can pronounce the Phil Collins hit "Sussudio" you can also pronounce "sudo" correctly.
@NameCallingIsWeak
@NameCallingIsWeak 3 жыл бұрын
su-DO, "doh" like Homer Simpson
@GC-qe8vc
@GC-qe8vc 3 жыл бұрын
It's supposed to stand for "superuser do" so it's pronounced with "do" as do in doing something.
@miyalys
@miyalys 2 жыл бұрын
As G C says, here from the inventor: kzbin.info/www/bejne/gpKkqJ9pfbNomtU
@jantje01k
@jantje01k 4 жыл бұрын
what if your servers have different pass ?
@praecorloth
@praecorloth 4 жыл бұрын
A couple of things you might consider: 1. A service account with a single password across your servers 2. If you do ansible --help, there are options for a vault password file. Jay might go into this in a later video. Not sure, still making my way through the series now. But this option might let you specify usernames, passwords, and hosts.
@jantje01k
@jantje01k 4 жыл бұрын
@@praecorloth He did make a video about Ansible Vault, but not with multiple passwords for different hosts
@praecorloth
@praecorloth 4 жыл бұрын
Hrm. Well, I'm not an Ansible expert. So without knowing all of the tools available with Ansible right now, the best tools to I can think of for this issue would be defining hosts in multiple groups based on any servers that have a common password, and then have your playbooks look at the facts variables to identify which modules need to be used based on maybe what OS is installed, or what software is installed, etc. Looking at some of the documentation for Ansible vault, it looks like you can call up some of those secrets with a variable. If that's the case, then maybe you can pass that secret in the playbook, and have one password for revealing those secrets. I don't know, though, haven't had a chance to play with it yet.
@alphabasic1759
@alphabasic1759 Жыл бұрын
The command is sudo, … not suooooo
@MrSandshadow
@MrSandshadow Жыл бұрын
0:10 I would belive you if your face wasnt as emotionless as your voice was dead inside. xD I know we engineers are not best performers...
@jannahiaali5606
@jannahiaali5606 5 ай бұрын
bloody wasted time, just directly use sudo, and follow Ansible documents to work quickly!!
@robothtml
@robothtml 5 ай бұрын
Ubuntu 22.04 Cloud Init VM running inside of ProxMox I ran into some confusion following this video. Running the following command did not require the become password. ansible all -m apt -a name=tmux --become I can even add "--ask-become-pass" and type in the incorrect password and it's still working. The cause: # cat /etc/sudoers.d/90-cloud-init-users # Created by cloud-init v. 24.1.3-0ubuntu3.3 on Fri, 19 Jul 2024 19:38:22 +0000 # User rules for username username ALL=(ALL) NOPASSWD:ALL I commented out the line and rebooted the VM. It appears to have resolved the issue.
@ziaurrehman4738
@ziaurrehman4738 2 жыл бұрын
Is Become password jay@workstation password?
Getting started with Ansible 06 - Writing our first Playbook
20:54
Learn Linux TV
Рет қаралды 109 М.
Getting started with Ansible 04 - Running ad-hoc Commands
18:29
Learn Linux TV
Рет қаралды 145 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 348 М.
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 900 М.
Using Ansible to automate your Laptop and Desktop configs!
1:08:27
Learn Linux TV
Рет қаралды 106 М.
Things I wish I knew about Ansible from day 1
10:58
Michael Crilly
Рет қаралды 7 М.
Getting Started with Ansible 08 - Improving your Playbook
13:13
Learn Linux TV
Рет қаралды 58 М.
Getting started with Ansible 02 - SSH Overview & Setup
28:51
Learn Linux TV
Рет қаралды 260 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 506 М.
Automate EVERYTHING with Ansible! (Ansible for Beginners)
18:31
Techno Tim
Рет қаралды 248 М.
Complete Ansible Semaphore Tutorial: From Installation to Automation
48:07
Encrypting Files with Ansible Vault
20:48
Learn Linux TV
Рет қаралды 21 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН