Fix regex for replacing http_proxy (#8957)
This commit is contained in:
parent
3ae397019c
commit
e5d6c042a9
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
when: not skip_http_proxy_on_os_packages
|
when: not skip_http_proxy_on_os_packages
|
||||||
|
|
||||||
- name: Add proxy to RHEL subscription-manager if http_proxy is defined
|
- 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
|
become: true
|
||||||
when:
|
when:
|
||||||
- not skip_http_proxy_on_os_packages
|
- not skip_http_proxy_on_os_packages
|
||||||
|
|
Loading…
Reference in a new issue