Only check imports when root_gpgkeys is defined

This commit is contained in:
Kris Lamoureux 2023-10-19 23:18:26 -04:00
parent d05c5d3086
commit 1dacc28f29
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -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: