mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2025-04-02 01:20:57 +02:00
Updated to use /etc/apt/trusted.gpg.d/ folder for kubernetes key
This commit is contained in:
parent
4a4c88b6b8
commit
df96f2213a
@ -53,7 +53,7 @@ kubernetes_ignore_preflight_errors: 'all'
|
|||||||
|
|
||||||
kubernetes_apt_release_channel: main
|
kubernetes_apt_release_channel: main
|
||||||
# Note that xenial repo is used for all Debian derivatives at this time.
|
# Note that xenial repo is used for all Debian derivatives at this time.
|
||||||
kubernetes_apt_repository: "deb http://apt.kubernetes.io/ kubernetes-xenial {{ kubernetes_apt_release_channel }}"
|
kubernetes_apt_repository: "deb [signed-by=/etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg] http://apt.kubernetes.io/ kubernetes-xenial {{ kubernetes_apt_release_channel }}"
|
||||||
kubernetes_apt_ignore_key_error: false
|
kubernetes_apt_ignore_key_error: false
|
||||||
|
|
||||||
kubernetes_yum_arch: '$basearch'
|
kubernetes_yum_arch: '$basearch'
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Add Kubernetes apt key.
|
- name: Add Kubernetes apt key.
|
||||||
apt_key:
|
ansible.builtin.get_url:
|
||||||
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
||||||
state: present
|
dest: /etc/apt/trusted.gpg.d/kubernetes-archive-keyring.gpg
|
||||||
register: add_repository_key
|
register: add_repository_key
|
||||||
ignore_errors: "{{ kubernetes_apt_ignore_key_error }}"
|
ignore_errors: "{{ kubernetes_apt_ignore_key_error }}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user