From e5d6c042a9312ec83ac2db2e1c1d82f791ff9e69 Mon Sep 17 00:00:00 2001
From: Dickson Tung <tungdickson@gmail.com>
Date: Tue, 14 Jun 2022 22:07:34 +0800
Subject: [PATCH] Fix regex for replacing http_proxy (#8957)

---
 roles/bootstrap-os/tasks/bootstrap-redhat.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roles/bootstrap-os/tasks/bootstrap-redhat.yml b/roles/bootstrap-os/tasks/bootstrap-redhat.yml
index b9c66c3c1..4a9913fe8 100644
--- a/roles/bootstrap-os/tasks/bootstrap-redhat.yml
+++ b/roles/bootstrap-os/tasks/bootstrap-redhat.yml
@@ -17,7 +17,7 @@
   when: not skip_http_proxy_on_os_packages
 
 - name: Add proxy to RHEL subscription-manager if http_proxy is defined
-  command: /sbin/subscription-manager config --server.proxy_hostname={{ http_proxy | regex_replace(':\\d+$') }} --server.proxy_port={{ http_proxy | regex_replace('^.*:') }}
+  command: /sbin/subscription-manager config --server.proxy_hostname={{ http_proxy | regex_replace(':\d+$') }} --server.proxy_port={{ http_proxy | regex_replace('^.*:') }}
   become: true
   when:
     - not skip_http_proxy_on_os_packages
-- 
GitLab