---
title: "Discussion on \"Understanding the Shell and Command Modules In Ansible Playbooks\" | Hashnode"
description: "Discussion on \"Understanding the Shell and Command Modules In Ansible Playbooks\". As a general rule, it is advised not to use the command or shell module unless it is the only alternative. More specific modules should be used in your ansi"
url: "https://hashnode.com/posts/understanding-the-shell-and-command-modules-in-ansible-playbooks/63754c5ebf7e0c178a752a31"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding the Shell and Command Modules In Ansible Playbooks](https://mfon.hashnode.dev/understanding-the-shell-and-command-modules-in-ansible-playbooks?utm_source=hashnode&utm_medium=feed)

As a general rule, it is advised not to use the command or shell module unless it is the only alternative. More specific modules should be used in your ansi

Nov 16, 2022 · 3 min read · mfon.hashnode.dev  
Updated Nov 24, 2022  
Read the article

-   [#command](https://hashnode.com/tag/command)
-   [#ansible-playbook](https://hashnode.com/tag/ansible-playbook)
-   [#ansible-module](https://hashnode.com/tag/ansible-module)
-   [#ansible](https://hashnode.com/tag/ansible)
-   [#shell](https://hashnode.com/tag/shell)

## Written by

[Mfon](https://hashnode.com/@Mfon)

@Mfon · Abuja, Nigeria

  
[View profile](https://hashnode.com/@Mfon)

I enjoy writing about tools I use. Interested in Open Source | Open Science | MedTech

I am a DevOps Engineer, I enjoy writing about tools I use. Interested in Open Source | Open Science Projects.

## Responses 2

Markdown supported · ⌘↵ to post

[Nwokolo Emmanuel](https://hashnode.com/@NwokoloEmmanuel)

[Nov 30, 2022](https://hashnode.com/posts/understanding-the-shell-and-command-modules-in-ansible-playbooks/63754c5ebf7e0c178a752a31/comment/63872452477a734419e73613)

it's great

[Chidi Akunne](https://hashnode.com/@Thegodkind)

[Nov 16, 2022](https://hashnode.com/posts/understanding-the-shell-and-command-modules-in-ansible-playbooks/63754c5ebf7e0c178a752a31/comment/637555352cab3a64dcb6c5b0)

This is very beginner friendly. Thanks for sharing.

[Mfon](https://hashnode.com/@Mfon)

[Nov 20, 2022](https://hashnode.com/posts/understanding-the-shell-and-command-modules-in-ansible-playbooks/63754c5ebf7e0c178a752a31/comment/637555352cab3a64dcb6c5b0#reply-637a801b07e9759e6df2a44f)

Thank you!
