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

26 lines
647 B
YAML
Raw Permalink 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
2018-05-09 16:19:11 +02:00
state: present
- 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: true
- name: Add Kubernetes apt preferences file to pin a version.
template:
src: apt-preferences-kubernetes.j2
dest: /etc/apt/preferences.d/kubernetes