summaryrefslogtreecommitdiff
path: root/roles/apt-repo/kubernetes/tasks/main.yml
blob: 0226a3ffaf45a5832a5ea5fb7c16c8e6b009921f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: add repository key
  copy:
    src: repo.gpg
    dest: /etc/apt/trusted.gpg.d/kubernetes.gpg
  notify: update apt cache

- name: add repository entry
  copy:
    content: |
      deb https://apt.kubernetes.io/ kubernetes-xenial main
    dest: /etc/apt/sources.list.d/kubernetes.list
  notify: update apt cache

- name: update apt cache
  meta: flush_handlers