Simple automation for all your Linux servers with Ansible

  Рет қаралды 74,076

Christian Lempa

Christian Lempa

Күн бұрын

Пікірлер
@christianlempa
@christianlempa 4 жыл бұрын
Learn more about Ansible and how to automate virtual machine provisioning with Vagrant and Ansible: kzbin.info/www/bejne/bXXMYaetrt2qZ68
@ericsg95
@ericsg95 3 жыл бұрын
This could be the most underrated channel in YT!! You are doing a great job and I hope your subscribers exploded to find this hidden treasure!! Have enjoyed a lot of your videos and super advanced Sysadmin and Devops! 🙌
@christianlempa
@christianlempa 3 жыл бұрын
Haha thank you so much! :)
@wekiwa7055
@wekiwa7055 2 жыл бұрын
Very informative Christian! So many dont provide the details on real world Ansible setup for many servers with different passwords. Thank You from Texas US!
@kmalysiakPL
@kmalysiakPL Жыл бұрын
good starting point for ansible, short and informative; thumbs up!
@geoffreyvanwyk4588
@geoffreyvanwyk4588 3 жыл бұрын
Thank you, Christian, for making this video. It helped me to get started with Ansible. Trying to get started by just visiting the Ansible documentation is daunting.
@christianlempa
@christianlempa 3 жыл бұрын
Thank you, it makes me happy to see it helped you :)
@xanderthunder69
@xanderthunder69 4 жыл бұрын
Thanks for this great tutorial! It helped me a lot getting started with ansible. Keep up the extremely good work
@christianlempa
@christianlempa 4 жыл бұрын
Thank you! I'm glad it helped you :)
@AmedeeVanGasse
@AmedeeVanGasse 3 жыл бұрын
10:17 you don't need the three hyphens. It comes from the YAML spec. The hyphens are a separator, before are directives (like yaml version, yaml tags,...) and after is the actual yaml content. If you have no yaml directives, then you *may* drop the 3 hyphens. Yaml directives are not really relevant for ansible, so feel free to drop the hyphens. Similarly, the yaml spec specifies 3 dots to end yaml content. That's when one document contains multiple yaml parts, or when the yaml is not a file but a stream and you want to signal your yaml processor to stop instead of waiting until the stream is closed. Again, not relevant for ansible, so drop the 3 dots. I think almost everyone is doing that already without knowing why. I suggest to configure your yamlling to NOT check for --- or ...
@cyberdyne981
@cyberdyne981 Жыл бұрын
@christianlempa - I very much appreciate all the effort you put into your videos, including the extra work of time and chapter indexes! Danke schön 😀
@christianlempa
@christianlempa Жыл бұрын
Awesome, I'm glad you like them :)
@BlurryBit
@BlurryBit 2 жыл бұрын
Wow man that's a no crap goldmine! Thank you, enjoying the video quite a lot, and I have what I was searching for for the last 3 hours!! :p
@MrHanSoL0
@MrHanSoL0 Жыл бұрын
Excellent!! Just what I was looking for! You helped me tremendously with clarifying on using the ansible.cfg and inventory files correctly. Thank you for sharing 🙏 I forgot I had seen this and had to revert back 😁
@christianlempa
@christianlempa Жыл бұрын
Thanks :)
@PrinzCharming123456
@PrinzCharming123456 Ай бұрын
fantastic video!
@marcodigits4321
@marcodigits4321 Жыл бұрын
I find it kinda funny to see old fashion ordner maps behind Christian.
@carlosalonsosouza6439
@carlosalonsosouza6439 2 жыл бұрын
As always, gret video ! Thanks. Git hub subscriber now ^^ cheers
@christianlempa
@christianlempa 2 жыл бұрын
Awesome! Thank you :)
@Shelly-h3y8i
@Shelly-h3y8i 2 жыл бұрын
Very helpful tutorial to get started. Thank you!
@JamesT65
@JamesT65 4 жыл бұрын
Just came across this channel and love it, your awesome.
@christianlempa
@christianlempa 4 жыл бұрын
Thanks man 😊
@JamesT65
@JamesT65 4 жыл бұрын
@@christianlempa your welcome, you put a lot of hard work in to those videos.
@bhupendrasinghsuri496
@bhupendrasinghsuri496 4 ай бұрын
Share more videos with variety of examples 🙏🙏
@christianlempa
@christianlempa 4 ай бұрын
I'll do :)
@khalidelgazzar
@khalidelgazzar 3 жыл бұрын
Great video and great explanation
@christianlempa
@christianlempa 3 жыл бұрын
Awesome thanks 😊
@MrHanSoL0
@MrHanSoL0 3 жыл бұрын
Thank you sir!! Very helpful and I will follow in github
@christianlempa
@christianlempa 3 жыл бұрын
Thank you! Highly appreciated :)
@morikuldip526
@morikuldip526 2 жыл бұрын
please create a video playbook for installing ansible for install adminer in targeted server.
@Jason.M
@Jason.M Жыл бұрын
What is the terminal being used in this video? Reminds me of the kali Linux terminal
@saschag7615
@saschag7615 3 жыл бұрын
Thanks for the video! The best one of starting with Ansible I found :) But I have one think to ask: Wouldn't it be safer to only add the user to the sudoers file and add the nopasswd instead of allow it for all users?
@christianlempa
@christianlempa 3 жыл бұрын
Thanks! Yeah thats a good point!
@saschag7615
@saschag7615 3 жыл бұрын
@@christianlempa I've tested this and it's working like your way, only with one additional row 👌
@TheOnlyEpsilonAlpha
@TheOnlyEpsilonAlpha 2 жыл бұрын
Maybe you can also limit the sudoer without password entering to a functional user for ansible. I like the concept of having systems contained in their own functional users with just the privileges they need, in this case the root user group or an administrative group. So if anything goes wrong you can much more easily track down the source of an issue, and if security concerns apply about a comprised ansible master, you can get rid of the functional users
@dgililov
@dgililov 3 жыл бұрын
Great tutorial
@christianlempa
@christianlempa 3 жыл бұрын
Thanks
@tobiashelbing1233
@tobiashelbing1233 Жыл бұрын
Mega! Danke
@MarekGrossman
@MarekGrossman 2 жыл бұрын
It really help. Thanks.
@christianlempa
@christianlempa 2 жыл бұрын
Happy to help
@sirekibe
@sirekibe Жыл бұрын
how to get those nodes ips ? like, from where & how do we get the nodes ?
@andreabiasci973
@andreabiasci973 7 ай бұрын
Thankyou; which terminal you use ?😜
@madhavreddy6008
@madhavreddy6008 2 жыл бұрын
Hi, I actually setup the Ansible master and server configuration in two docker containers. When I am executing the following command it is asking for sudo password: ```ansible-playbook ``` - My question is when it is asking for "SUDO" password, what I need to enter there a. Root password of worker container ? b. Password of the user that we defined in hosts file (ex: Madhav user) of worker container ?
@bahijaamejrar5352
@bahijaamejrar5352 2 жыл бұрын
Pliiz show the result of playbook in the hosts
@GorkemYildirim
@GorkemYildirim 4 жыл бұрын
Thanks for the great intro to Ansible. I have no experience in this area but interested to learn as much as possible. Do you use Nagios? I guess it is commonly used for monitoring.
@gosnooky
@gosnooky Жыл бұрын
Never, ever, EVER allow sudo access without a password - if any bad actors gain access to your machine, then they will have access to the entire thing and not just user files. Keep your sudo passwords in a yaml file (key-value pairs) that is encrypted with ansible-vault, then include that secrets file in the vars_files array at the top level of the playbook hierarchy, then create a task (set fact) to import those sudo passwords into the ansible_become_pass variable per host. Only add become: true to individual tasks and not the playbook as a whole.
@opethfan89
@opethfan89 2 жыл бұрын
Entirely curious -- I really like your terminal layout. I see you're using powerline theme...what shell are you using? Zsh? and what terminal emulator? I really like the paste prompt. My OCD is kicking in and I noticed on the right side of your prompt, you have some artifact bleedover in the symbols. I believe you need to use a different patched Powerline font to get rid of that. Of course, just because it bothers me doesn't mean it bothers you, or anyone else!
@syed9721
@syed9721 Жыл бұрын
Can you show how to automate Oracle database patch on Linux server using Ansible....please
@contactsan12
@contactsan12 2 жыл бұрын
beautiful nothing else
@davida.7586
@davida.7586 3 жыл бұрын
Super!
@christianlempa
@christianlempa 3 жыл бұрын
Thanks
@theconfusedchannel6365
@theconfusedchannel6365 Жыл бұрын
Thanks for this. Have you figured out without using NOPASSWD for sudo? Also can you pass password with Ansible vault for sudo?
@christianlempa
@christianlempa Жыл бұрын
I think you can do it, but I feel it's a bit uncomfortable to always inject it into the command, that's why I prefer the NOPASSWD statement.
@sanaths4613
@sanaths4613 2 жыл бұрын
Hi bro, i wanna write ansible playbook that performs ssh login into remote hosts and then checks for sudo access, please help me
@lovely-shrubbery8578
@lovely-shrubbery8578 Ай бұрын
👀 that sounds bad
@csiriiimjammu1947
@csiriiimjammu1947 10 ай бұрын
how to enable and disable network adapter using ansible playbook ...pls revert
@contactsan12
@contactsan12 2 жыл бұрын
make same on dockers nice video last part was little fast but good
@christianlempa
@christianlempa 2 жыл бұрын
Thanks 😉
@hawwestin
@hawwestin 2 жыл бұрын
With version 2.10.7 even ping does not work so this tutorial is obsolete by now. It always use user upon which you execute ansible command and if this user is not available on target host it will fail on ssh connection. Inventory variables like ansible_user=root does not work now.... I'm searching for solution but all YT tutorials use the same practice to authorize.
@hawwestin
@hawwestin 2 жыл бұрын
The issue is about variables squashing "By default Ansible merges groups at the same parent/child level in ASCII order, and the last group loaded overwrites the previous groups" So when you have added two list of variables to one inventory file it may not work :/
@alpachino468
@alpachino468 Жыл бұрын
Can Ansible return output as JSON?
@alexc414
@alexc414 3 жыл бұрын
This probably sounds like a stupid question and maybe I missed it, but would the master be where all these config files and inventory files should be stored?
@christianlempa
@christianlempa 3 жыл бұрын
Good question, usually you have them on your workstation, but of course this might be not best in a team setup. You could use github or also a project like AWX, I hopefully can make a video about somewhere next year.
@Kelly-wy2uf
@Kelly-wy2uf 5 ай бұрын
I don't want to see the easy way. I always want to see how setup or use as you would in production.
@szevaa97
@szevaa97 2 жыл бұрын
I love your PS1, do you mind share it?
@themangoman5642
@themangoman5642 3 жыл бұрын
I have 500+ servers and i want to install telegraf agent on those servers gor grafana monitoring.. how can i add 500+ servers on ansible and run commands on all those servers
Automate your virtual lab environment with Ansible and Vagrant
20:38
Christian Lempa
Рет қаралды 37 М.
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 900 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
How to protect Linux from Hackers // My server security strategy!
30:39
Christian Lempa
Рет қаралды 232 М.
You want a real Name Server at home? // DNS
32:31
Christian Lempa
Рет қаралды 285 М.
Automating my Homelab with Ansible
13:18
Jeff Geerling
Рет қаралды 348 М.
SSH Key Linux secure remote authentication to your Server
18:13
Christian Lempa
Рет қаралды 30 М.
get started with Ansible Network Automation (FREE cisco router lab)
15:02
Automate EVERYTHING with Ansible! (Ansible for Beginners)
18:31
Techno Tim
Рет қаралды 248 М.
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
Wolfgang's Channel
Рет қаралды 888 М.
What is infrastructure as code? // Terraform Tutorial
30:24
Christian Lempa
Рет қаралды 36 М.
GIANT Gummy Worm #shorts
0:42
Mr DegrEE
Рет қаралды 152 МЛН