Back to Browse

Ansible Shell Module Tutorial - Complete Beginner's Guide

25.8K views
Feb 1, 2019
7:50

πŸŽ“ My new Ansible Course (Productive with Ansible, 2024) now in Early Access: https://learn.toptechskills.com/courses/productive-with-ansible The Ansible Shell Module allows you to run arbitrary commands on a remote host, just like you were logged into the shell. The Shell and Command modules are very similar, the major difference being that the shell module does not escape commands, allowing you to use shell operators like redirects ("greater than", "less than"), pipe ("|") and boolean operators ("&&", "||"). This does mean that the Shell module is susceptible to command injection/shell injection, but this is easy enough to overcome by using the "quote" filter when using variables with the Shell module. - 0:00 -- Shell Module vs Command Module - 3:39 -- Basic Shell Module Usage (+ args, environment and loops) - 5:15 -- Preventing Shell Injection ℹ️ READ THE IN-DEPTH TUTORIAL HERE == http://bit.ly/2CXMois SETUP/EDITOR/IDE βœ… Visual Studio Code (https://code.visualstudio.com/) βœ… Ansible extension by Microsoft (http://bit.ly/2SdnqoK). βœ… SEE HOW I SET UP ANSIBLE == https://youtu.be/yiooWsMERaY Thanks for watching and hope it's entertaining/useful for you! Hit me up in the comments if you have any questions or feedback πŸ’ͺ. Related & Channel ▢️ http://bit.ly/2VWid3D == Playlist of all Ansible videos ⭐️ http://bit.ly/2HavqCu == Subscribe to our YouTube Channel Our Site & Socials 🌐 http://bit.ly/2shtKwZ == TopTechSkills.com 🐦 http://bit.ly/2RkgZkk == @TopTechSkills on Twitter 🐦 http://bit.ly/2AA19aN == @PercyGrunwald on Twitter πŸ˜ƒ http://bit.ly/2ACQgEW == @TopTechSkills on Facebook πŸ•Ή http://bit.ly/2CWR3ST == @PercyGrunwald on Twitch

Download

1 formats

Video Formats

360pmp412.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Ansible Shell Module Tutorial - Complete Beginner's Guide | NatokHD