diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-05-15 21:00:42 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-05-15 21:00:42 +0200 |
commit | ae3f3e1ecd6e2ba860ed769c40a9a3e375dd11bc (patch) | |
tree | b0bc528fd8d3a198d7ab04cfddd9cfd22dc0dd8c /roles/apt-repo/github-containers/tasks/main.yml | |
parent | cosmetic fix (diff) | |
parent | bump kubernetes version for most standalone kubelets (diff) |
Merge branch 'topic/k8s-containerd'
Diffstat (limited to 'roles/apt-repo/github-containers/tasks/main.yml')
-rw-r--r-- | roles/apt-repo/github-containers/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/apt-repo/github-containers/tasks/main.yml b/roles/apt-repo/github-containers/tasks/main.yml new file mode 100644 index 00000000..fae56380 --- /dev/null +++ b/roles/apt-repo/github-containers/tasks/main.yml @@ -0,0 +1,20 @@ +--- +- name: add repository key + copy: + src: repo.gpg + dest: /etc/apt/trusted.gpg.d/github-containers.gpg + register: apt_repo_github_containers_key + +- name: add repository entry + copy: + content: | + deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/{{ (ansible_distribution == 'Ubuntu') | ternary('xUbuntu', ansible_distribution) }}_{{ ansible_distribution_version }}/ / + dest: /etc/apt/sources.list.d/github-containers.list + register: apt_repo_github_containers_sources + +- name: update apt cache + when: apt_repo_github_containers_key is changed or + apt_repo_github_containers_sources is changed + command: apt-get update + args: + warn: false |