Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngetchell.vscode : set gpg key fails on Ubuntu #15

Open
staticdev opened this issue Jan 5, 2021 · 0 comments
Open

ngetchell.vscode : set gpg key fails on Ubuntu #15

staticdev opened this issue Jan 5, 2021 · 0 comments

Comments

@staticdev
Copy link

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": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant