diff --git a/tasks/repositories-Debian.yml b/tasks/repositories-Debian.yml index 9341940..5d63a88 100644 --- a/tasks/repositories-Debian.yml +++ b/tasks/repositories-Debian.yml @@ -2,11 +2,13 @@ - name: Install gpg ansible.builtin.package: name: gpg + when: cobbler_gpg_key is defined - name: Install GPG-KEY ansible.builtin.apt_key: url: "{{ cobbler_gpg_key }}" keyring: /etc/apt/trusted.gpg.d/cobbler.gpg + when: cobbler_gpg_key is defined - name: Configure Cobbler repository ansible.builtin.template: