So this is a traceback that looks like it needs to be caught to raise a proper error.
Please let us know what version of Ansible you are using, though in this case it seems like we need to catch an exception in the apt module. Once you have pinned down the Ansible version, please file a ticket at github.com/ansible/ansible per CONTRIBUTING.md and include the line from your playbook that you used to trigger the task, as well as the output above. On Sat, Jul 19, 2014 at 3:33 AM, Lokesh Dokara <[email protected]> wrote: > invalid output was: SUDO-SUCCESS-siogahtpvfcksvvxfxqslqrszpkxisfp > bzip2: (stdin) is not a bzip2 file. > bzip2: (stdin) is not a bzip2 file. > bzip2: (stdin) is not a bzip2 file. > bzip2: (stdin) is not a bzip2 file. > Traceback (most recent call last): > File > "/home/vagrant/.ansible/tmp/ansible-tmp-1405754512.83-262599342047331/apt", > line 1762, in <module> > main() > File > "/home/vagrant/.ansible/tmp/ansible-tmp-1405754512.83-262599342047331/apt", > line 492, in main > cache.update() > File "/usr/lib/python2.7/dist-packages/apt/deprecation.py", line 98, in > deprecated_function > return func(*args, **kwds) > File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 418, in update > raise FetchFailedException(e) > apt.cache.FetchFailedException: W:Failed to fetch > bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_main_binary-amd64_Packages > Hash Sum mismatch > , W:Failed to fetch > bzip2:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-i386_Packages > Hash Sum mismatch > , E:Some index files failed to download. They have been ignored, or old > ones used instead. > > -- > 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/27d2ec3f-4359-4ee4-bc30-5bba3887edb1%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/27d2ec3f-4359-4ee4-bc30-5bba3887edb1%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/CA%2BnsWgyQVPi%3D8gg_iBGdsvqei2HDmGAE6GripHqwiWej4VwgWA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
