geerlingguy.ansible-role-ku.../tasks/setup-Debian.yml

23 lines
543 B
YAML
Raw Normal View History

2018-05-09 16:19:11 +02:00
---
- name: Ensure dependencies are installed.
apt:
2018-09-28 05:17:50 +02:00
name:
- apt-transport-https
- ca-certificates
- python3-debian
2018-05-09 16:19:11 +02:00
state: present
- name: Add Kubernetes repository.
2024-03-01 16:57:05 +01:00
deb822_repository:
name: kubernetes
types: deb
uris: "{{ kubernetes_apt_repository }}"
suites: /
signed_by: "{{ kubernetes_apt_repository }}/Release.key"
- name: Add Kubernetes apt preferences file to pin a version.
template:
src: apt-preferences-kubernetes.j2
dest: /etc/apt/preferences.d/kubernetes
2020-08-20 19:23:45 +02:00
mode: 0644