Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • 2
    shell is a valid ansible module yes. i do not want to replace it with the command module because i plan to use piping afterwards. but even using the command module, i get the same empty output. Commented Jan 7, 2018 at 14:01
  • @Jesse_b Have a look here: docs.ansible.com/ansible/latest/shell_module.html I use the shell module a lot as I find it more flexible than command. Commented Jan 7, 2018 at 14:30