From 1dacc28f29affd89e48f1c60881b94ce27690009 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Thu, 19 Oct 2023 23:18:26 -0400 Subject: [PATCH] Only check imports when root_gpgkeys is defined --- roles/base/tasks/system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base/tasks/system.yml b/roles/base/tasks/system.yml index c0c16d5..3dddd66 100644 --- a/roles/base/tasks/system.yml +++ b/roles/base/tasks/system.yml @@ -31,7 +31,7 @@ loop: "{{ gpg_check_import.results }}" loop_control: label: "{{ item.item.item }}" - when: (item.skipped | default(false) == false) and ('imported' not in item.stderr) + when: root_gpgkeys is defined and (item.skipped | default(false) == false) and ('imported' not in item.stderr) - name: Install NTPsec ansible.builtin.apt: