From ae3a1d7c016c644d1030e3accc8050d2850d1b31 Mon Sep 17 00:00:00 2001 From: Kenichi Omichi Date: Wed, 21 Apr 2021 07:20:11 -0700 Subject: [PATCH] Fix keepcache values of yum_repository (#7506) As the official document[1], the parameter keepcache should be '0' or '1' as string. To avoid the following warning message, this fixes the parameter value: [WARNING]: The value False (type bool) in a string field was converted to u'False' (type string). If this does not look like what you expect, quote the entire value to ensure it does not change. https://docs.ansible.com/ansible/latest/collections/ansible/builtin/yum_repository_module.html --- roles/container-engine/cri-o/tasks/crio_repo.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/container-engine/cri-o/tasks/crio_repo.yml b/roles/container-engine/cri-o/tasks/crio_repo.yml index 6eb5e1432..fe345347f 100644 --- a/roles/container-engine/cri-o/tasks/crio_repo.yml +++ b/roles/container-engine/cri-o/tasks/crio_repo.yml @@ -78,7 +78,7 @@ baseurl: http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_$releasever/ gpgcheck: yes gpgkey: http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_$releasever/repodata/repomd.xml.key - keepcache: false + keepcache: '0' when: ansible_distribution in ["CentOS"] - name: Add CRI-O kubic yum repo @@ -97,7 +97,7 @@ baseurl: http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/ gpgcheck: yes gpgkey: http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/repodata/repomd.xml.key - keepcache: false + keepcache: '0' when: ansible_distribution in ["Amazon"] - name: Add CRI-O kubic yum repo