Have you tried the shell module instead of the command module?

On Wed, Aug 6, 2014 at 5:38 PM, 曹锐创 <[email protected]> wrote:

> such as "ls && cd .." and " if [ ! -d "/myfolder" ]". so some command can
> be run at the terminal but not in ansible, sometimes we have to write a
> script file to enable the command.
> Personally thinking, I think this feature could be improved.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/d4a5a214-1010-4990-bc4e-f6b7c0cdc572%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/d4a5a214-1010-4990-bc4e-f6b7c0cdc572%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAPdwyX5nTF5dNeqsq-0PbBEsoF-gJawi4fBCPahT9WEZkEdD-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to