Skip to content

Commit

Permalink
Fix dry-run with setting repository key wuthout apt-key, and weekly job
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Girardin committed Nov 27, 2023
1 parent 0aa59c1 commit 3b40e38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/packages/tasks/kube_repo_Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
file:
dest: /etc/apt/keyrings
state: directory
register: _apt_keyring_directory

- name: 'Add kubernetes repo signing key'
ansible.builtin.get_url:
url: '{{ kubernetes_repository.gpg_url }}'
dest: '/etc/apt/keyrings/kubernetes-apt-keyring.asc'
force: true
when: not(_apt_keyring_directory is changed and ansible_check_mode)

- name: 'Add the kubernetes repository'
apt_repository:
Expand Down

0 comments on commit 3b40e38

Please sign in to comment.