mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-28 19:05:53 +01:00
Update apt cache when Kubernetes repo is added.
This commit is contained in:
parent
baadacdb3c
commit
904f5be944
@ -14,6 +14,12 @@
|
||||
uris: "{{ kubernetes_apt_repository }}"
|
||||
suites: /
|
||||
signed_by: "{{ kubernetes_apt_repository }}/Release.key"
|
||||
register: kubernetes_repository
|
||||
|
||||
- name: 'Update Apt cache.'
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
when: kubernetes_repository.changed
|
||||
|
||||
- name: Add Kubernetes apt preferences file to pin a version.
|
||||
template:
|
||||
|
Loading…
Reference in New Issue
Block a user