From 815b1f7d7b8971424241e4d0690563c3662e7b41 Mon Sep 17 00:00:00 2001 From: jsl6ul <139987629+jsl6ul@users.noreply.github.com> Date: Mon, 27 May 2024 11:44:54 -0400 Subject: [PATCH] Make 'cobbler_gpg_key' optional make 'cobbler_gpg_key' optional. --- tasks/repositories-Debian.yml | 2 ++ 1 file changed, 2 insertions(+) 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: