You should absolutely use the apt module.

You can install multiple packages in a single step by using "with_items"
and there's a flag for controlling whether recommended packages are
installed (see module docs).

I suspect as for the commands not being interactive the second time it was
because you've already executed them and already bypassed the shell prompts.







On Sun, Dec 29, 2013 at 11:52 AM, Brian Coca <[email protected]> wrote:

> you can execute shell commands, just not ones that expect interactivity as
> they hold the tty (this happens with any background ssh execution).
>
> for apt commands, yes use the apt module, it takes care of 99% f these
> issues.
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to