We're consistently receiving the following error on a new deployment. The environment is a QA server on a VMWare virtual machine:
TASK [nodejs : Add nodejs apt key] *******************************************
fatal: [192.168.100.21]: FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key add -", "msg": "Warning: apt-key output should not be parsed (stdout is not a terminal)\nE: This command can only be used by root.", "rc": 1, "stderr": "Warning: apt-key output should not be parsed (stdout is not a terminal)\nE: This command can only be used by root.\n", "stderr_lines": ["Warning: apt-key output should not be parsed (stdout is not a terminal)", "E: This command can only be used by root."], "stdout": "", "stdout_lines": []}
Any help would be appreciated!