From 86a110e066fba20bd927708cfccd066839814daa Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Thu, 8 Feb 2024 09:15:07 +0100 Subject: [PATCH] Ensure that the Nodesource key import does not get stuck This can happen if the key is already imported, the `gpg` command asks if it should overwrite it --- ops/roles/infra/node/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ops/roles/infra/node/tasks/main.yml b/ops/roles/infra/node/tasks/main.yml index 48bf69e8..fa08ae88 100644 --- a/ops/roles/infra/node/tasks/main.yml +++ b/ops/roles/infra/node/tasks/main.yml @@ -6,7 +6,7 @@ mode: "755" - name: Download and import the Nodesource GPG key - ansible.builtin.shell: set -o pipefail && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg + ansible.builtin.shell: set -o pipefail && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --yes --dearmor -o /etc/apt/keyrings/nodesource.gpg args: executable: /bin/bash