nodesource / ansible-nodejs-role

Ansible Role for Node.js Binary Install
MIT License
131 stars 47 forks source link

apt-transport-https installation fails on a new host. #10

Closed mtpereira closed 8 years ago

mtpereira commented 9 years ago

Hello,

The role fails on a new host (e.g., with a old apt cache), since it fails to find one of the apt-transport-https dependencies (libcurl3-gnutls). I've got this error on Vagrant using a Debian Wheezy 7.8 box.

To fix this, we only have to add the update_cache option and the cache_valid_time so that it updates the apt cache if it's older then cache_valid_time value.

The PR fixes that and also adds YAML syntax to the task file, which makes it really easier to read and diff.

Thank you!

wolfeidau commented 8 years ago

I am going to close this one as it seems like an edge case.

IF your concerned about this happening them best to run something like the following task before running this role.

- name: Apt-get update before installing
apt: update_cache=yes cache_valid_time=3600

Cheers