From f47aca3558d287be72850f28e6688173f69160fd Mon Sep 17 00:00:00 2001
From: Gleb Galkin <gleb108@gmail.com>
Date: Fri, 27 May 2022 04:51:55 +0300
Subject: [PATCH] Added |bool for rhel_enable_repos (#8871)

---
 roles/bootstrap-os/tasks/bootstrap-redhat.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/bootstrap-os/tasks/bootstrap-redhat.yml b/roles/bootstrap-os/tasks/bootstrap-redhat.yml
index be13f0d88..b9c66c3c1 100644
--- a/roles/bootstrap-os/tasks/bootstrap-redhat.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-redhat.yml
@@ -78,7 +78,7 @@
       - "rhel-7-server-extras-rpms"
     state: enabled
   when:
-    - rhel_enable_repos | default(True)
+    - rhel_enable_repos | default(True) | bool
     - ansible_distribution_major_version == "7"
 
 # container-selinux is in appstream repo
@@ -89,7 +89,7 @@
       - "rhel-8-for-*-appstream-rpms"
     state: enabled
   when:
-    - rhel_enable_repos | default(True)
+    - rhel_enable_repos | default(True) | bool
     - ansible_distribution_major_version == "8"
 
 - name: Check presence of fastestmirror.conf
-- 
GitLab