vscode
vscode copied to clipboard
ngetchell.vscode : set gpg key fails on Ubuntu
I am installing the most basic case on Ubuntu 20.04:
- hosts: servers
roles:
- ngetchell.vscode
Verbose output:
TASK [ngetchell.vscode : set gpg key] ******************************************************************************************************
task path: /home/static/workspace/linux-developer-playbook/roles/ngetchell.vscode/tasks/os_Debian.yml:3
[WARNING]: conditional statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ install_vscode }}
Using module file /home/static/.local/lib/python3.8/site-packages/ansible/modules/apt_key.py
Pipelining is enabled.
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: static
<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 && sleep 0'
fatal: [127.0.0.1]: FAILED! => {
"changed": false,
"cmd": "/usr/bin/apt-key add -",
"invocation": {
"module_args": {
"data": null,
"file": null,
"id": null,
"key": null,
"keyring": null,
"keyserver": null,
"state": "present",
"url": "https://packages.microsoft.com/keys/microsoft.asc",
"validate_certs": true
}
},
"msg": "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).\nE: This command can only be used by root.",
"rc": 1,
"stderr": "Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).\nE: This command can only be used by root.\n",
"stderr_lines": [
"Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).",
"E: This command can only be used by root."
],
"stdout": "",
"stdout_lines": []
}