apt-get update fails

142 views
Skip to first unread message

Tom Gertin

unread,
Apr 2, 2015, 9:08:11 PM4/2/15
to ansibl...@googlegroups.com
I am trying to run an 'apt-get update' command in my Ansible playbook but it is failing everytime. 

I am using the 'apt: update_cache=yes' command found here: http://docs.ansible.com/apt_module.html

It returns the following error:

TASK: [update apt cache] ******************************************************
failed: [localhost] => {"failed": true}
msg: Could not fetch updated apt files

FATAL: all hosts have already failed -- aborting


I created an Ubuntu trusty machine using virtualbox and I installed Ansible on it and I am running the scripts on the VirtualBox. My repo, which contains my Ansible scripts is here: https://github.com/d3netxer/ansible-osm-history-set-up

Thanks,

Tom

Matt Martz

unread,
Apr 2, 2015, 9:23:25 PM4/2/15
to Tom Gertin, ansibl...@googlegroups.com
I think you probably want ansible-project for a larger audience, since this isn't really a development question.
--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Reply all
Reply to author
Forward
0 new messages