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.
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.