mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +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 }}"
|
uris: "{{ kubernetes_apt_repository }}"
|
||||||
suites: /
|
suites: /
|
||||||
signed_by: "{{ kubernetes_apt_repository }}/Release.key"
|
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.
|
- name: Add Kubernetes apt preferences file to pin a version.
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user