From 8c3dfc96c3abfc35ee0b5cb360df67ba095abafe Mon Sep 17 00:00:00 2001 From: Bruno Brito Carvalho Date: Mon, 23 Aug 2021 10:11:06 +0200 Subject: [PATCH] gpgcheck and repo_gpgcheck as vars --- README.md | 2 ++ defaults/main.yml | 3 +++ tasks/setup-RedHat.yml | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b4038a0..5179ef7 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,8 @@ Apt repository options for Kubernetes installation. kubernetes_yum_gpg_key: - https://packages.cloud.google.com/yum/doc/yum-key.gpg - https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg + kubernetes_yum_gpg_check: true + kubernetes_yum_repo_gpg_check: true Yum repository options for Kubernetes installation. You can change `kubernete_yum_gpg_key` to a different url if you are behind a firewall or provide a trustworthy mirror. Usually in combination with changing `kubernetes_yum_base_url` as well. diff --git a/defaults/main.yml b/defaults/main.yml index 62d635e..18956cc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -62,6 +62,9 @@ kubernetes_yum_gpg_key: - https://packages.cloud.google.com/yum/doc/yum-key.gpg - https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg +kubernetes_yum_gpg_check: true +kubernetes_yum_repo_gpg_check: true + # Flannel config files. kubernetes_flannel_manifest_file_rbac: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/k8s-manifests/kube-flannel-rbac.yml kubernetes_flannel_manifest_file: https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 99a7098..079f33e 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -4,8 +4,8 @@ name: kubernetes description: Kubernetes enabled: true - gpgcheck: true - repo_gpgcheck: true + gpgcheck: "{{ kubernetes_yum_gpg_check }}" + repo_gpgcheck: "{{ kubernetes_yum_repo_gpg_check }}" baseurl: "{{ kubernetes_yum_base_url }}" gpgkey: "{{ kubernetes_yum_gpg_key }}"