nodesource / ansible-nodejs-role

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

Importing NodeSource GPG key fails with ansible 1.9 #8

Closed bryanhickerson closed 8 years ago

bryanhickerson commented 9 years ago

After upgrading to ansible 1.9, importing the GPG fails with a sudo error. It appears to be an upstream problem as there are bugs that sound similar, but I thought it might save someone time if they came here looking for a solution.

TASK: [nodesource.node | Import the NodeSource GPG key into apt] ****** failed: [default] => {"cmd": "apt-key add -", "failed": true, "rc": 1} stdout: ERROR: This command can only be used by root.