Apt by default needs eleventy zillion flags to not go interactive. There's a parameter you should use on the 'apt' module that does upgrades that will take care of this for you.
On Fri, Dec 27, 2013 at 1:40 PM, 9dev <[email protected]> wrote: > Some of tasks I wrote start and never end. Ansible does not provide any > errors or logs that would explain this, even with -vvvv option. Playbook > just hangs and passing hours doesn't change anything. > > When I try to run my tasks manually (by entering commands via SSH) > everything is fine. > > Example task that hangs: > > - name: apt upgrade > shell: apt-get upgrade > > Is there any way to see stdout and stderr ? I tried: > > - name: apt upgrade > shell: apt-get upgrade > register: hello > - debug: msg="{{ hello.stdout }}" > - debug: msg="{{ hello.stderr }}" > > > but nothing changed. > > I do have required permissions and I pass correct sudo password - other > tasks that require sudo execute correctly. > > -- > 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.
