Only check imports when root_gpgkeys is defined

This commit is contained in:
2023-10-19 23:18:26 -04:00
parent d05c5d3086
commit 1dacc28f29

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: