Anyone by chance know why this is no longer working on ansible 2.0.0.2?
The apt repo definition is deb https://deb.nodesource.com/node_4.x trusty
main
- name: install packages
apt:
name: "{{item}}"
state: present
update_cache: true
with_items: apt_packages
register: apt
TASK [nodejs : install packages]
***********************************************
task path: /ansible/roles/nodejs/tasks/install.yml:18
ESTABLISH LOCAL CONNECTION FOR USER: root
127.0.0.1 EXEC ( umask 22 && mkdir -p "$( echo
$HOME/.ansible/tmp/ansible-tmp-1462384848.3-116158131187976 )" && echo "$(
echo $HOME/.ansible/tmp/ansible-tmp-1462384848.3-116158131187976 )" )
127.0.0.1 PUT /tmp/tmpShGiMV TO
/root/.ansible/tmp/ansible-tmp-1462384848.3-116158131187976/apt
127.0.0.1 EXEC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
/usr/bin/python
/root/.ansible/tmp/ansible-tmp-1462384848.3-116158131187976/apt; rm -rf
"/root/.ansible/tmp/ansible-tmp-1462384848.3-116158131187976/" > /dev/null
2>&1
failed: [localhost] => (item=[u'git-core', u'nodejs']) => {"failed": true,
"invocation": {"module_args": {"cache_valid_time": null, "deb": null,
"default_release": null, "dpkg_options": "force-confdef,force-confold",
"force": false, "install_recommends": null, "name": ["git-core", "nodejs"],
"package": ["git-core", "nodejs"], "purge": false, "state": "present",
"update_cache": true, "upgrade": null}, "module_name": "apt"}, "item":
["git-core", "nodejs"], "msg": "Could not fetch updated apt files"}
What is "Could not fetch updated apt files"? Seem to be working until we
had to install the dependencies here (
https://groups.google.com/forum/#!topic/ansible-project/dFRlLiUI4PA)
--
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/420ed381-4606-4735-9a32-4f51002a4d32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.