Skip to content

Commit

Permalink
Make 'cobbler_gpg_key' optional
Browse files Browse the repository at this point in the history
make 'cobbler_gpg_key' optional.
  • Loading branch information
jsl6ul authored May 27, 2024
1 parent 9f29198 commit 815b1f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/repositories-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 815b1f7

Please sign in to comment.