mirror of
https://github.com/geerlingguy/ansible-role-kubernetes.git
synced 2024-11-23 19:06:33 +01:00
22 lines
511 B
YAML
22 lines
511 B
YAML
---
|
|
- name: Ensure dependencies are installed.
|
|
apt:
|
|
name: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- apt-transport-https
|
|
- ca-certificates
|
|
|
|
- name: Add Kubernetes apt key.
|
|
apt_key:
|
|
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
|
|
state: present
|
|
register: add_repository_key
|
|
ignore_errors: "{{ kubernetes_apt_ignore_key_error }}"
|
|
|
|
- name: Add Kubernetes repository.
|
|
apt_repository:
|
|
repo: "{{ kubernetes_apt_repository }}"
|
|
state: present
|
|
update_cache: yes
|