HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Ansible Shell Module Tutorial - Complete Beginner's Guide

25,921 views October 29, 2019 7:50

Watch on YouTube
ChannelPercy Grunwald from TopTechSkills

Chapters

Description from the creator

🎓 My new Ansible Course (Productive with Ansible, 2024) now in Early Access: learn.toptechskills.com/courses/productive-with…

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 == bit.ly/2CXMois

SETUP/EDITOR/IDE

✅ Visual Studio Code (code.visualstudio.com/)
✅ Ansible extension by Microsoft (bit.ly/2SdnqoK).
✅ SEE HOW I SET UP ANSIBLE == 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
▶️ bit.ly/2VWid3D == Playlist of all Ansible videos
⭐️ bit.ly/2HavqCu == Subscribe to our YouTube Channel

Our Site & Socials
🌐 bit.ly/2shtKwZ == TopTechSkills.com
🐦 bit.ly/2RkgZkk == @TopTechSkills on Twitter
🐦 bit.ly/2AA19aN == @PercyGrunwald on Twitter
😃 bit.ly/2ACQgEW == @TopTechSkills on Facebook
🕹 bit.ly/2CWR3ST == @PercyGrunwald on Twitch

About this tutorial

Percy Grunwald from TopTechSkills published this 7:50 video tutorial on October 29, 2019. It has been watched 25,921 times on YouTube.

Duration
7:50
Published
October 29, 2019
Views
25,921
Likes
401

Tags

Share

This tutorial in other languages