ensure-kubernetes: refactor to use ensure-package-repositories

This patch refactors ensure-kubernetes to use the new generic role
to allow it to be cross-platform in the future.

Change-Id: Ic90c8973431823814c7e6b122f4ef25a67d64c2f
This commit is contained in:
Mohammed Naser 2020-04-04 16:00:03 -04:00 committed by Andreas Jaeger
parent f2976b1274
commit 90d9b9b7d9
2 changed files with 13 additions and 11 deletions

View File

@ -1,14 +1,11 @@
- name: Install apt key
become: yes
apt_key:
url: "https://packages.cloud.google.com/apt/doc/apt-key.gpg"
state: present
- name: Add kubernetes repo
become: yes
apt_repository:
repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
state: present
- name: Add all repositories
include_role:
name: ensure-package-repositories
vars:
repositories_keys:
- url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
repositories_list:
- repo: deb http://apt.kubernetes.io/ kubernetes-xenial main
- name: Install kubernetes packages and dependencies
become: yes

View File

@ -140,6 +140,7 @@
- roles/push-to-intermediate-registry/.*
- roles/ensure-docker/.*
- roles/ensure-kubernetes/.*
- roles/ensure-package-repositories/.*
- roles/build-docker-image/.*
- roles/run-buildset-registry/.*
- roles/use-buildset-registry/.*
@ -163,6 +164,7 @@
- roles/push-to-intermediate-registry/.*
- roles/ensure-docker/.*
- roles/ensure-kubernetes/.*
- roles/ensure-package-repositories/.*
- roles/build-docker-image/.*
- roles/run-buildset-registry/.*
- roles/use-buildset-registry/.*
@ -187,6 +189,7 @@
- roles/push-to-intermediate-registry/.*
- roles/ensure-docker/.*
- roles/ensure-kubernetes/.*
- roles/ensure-package-repositories/.*
- roles/build-docker-image/.*
- roles/run-buildset-registry/.*
- roles/use-buildset-registry/.*
@ -236,6 +239,7 @@
files:
- roles/ensure-docker/.*
- roles/ensure-kubernetes/.*
- roles/ensure-package-repositories/.*
- test-playbooks/ensure-kubernetes/.*
run: test-playbooks/ensure-kubernetes/docker.yaml
post-run: test-playbooks/ensure-kubernetes/post.yaml
@ -251,6 +255,7 @@
files:
- roles/ensure-docker/.*
- roles/ensure-kubernetes/.*
- roles/ensure-package-repositories/.*
- test-playbooks/ensure-kubernetes/.*
run: test-playbooks/ensure-kubernetes/crio.yaml
post-run: test-playbooks/ensure-kubernetes/post.yaml