Skip to content
Snippets Groups Projects
Unverified Commit da92c7e2 authored by Kenichi Omichi's avatar Kenichi Omichi Committed by GitHub
Browse files

Add proxy for subscription-manager (#8012)

If using proxy, it is necessary to configure it before running
"subscription-manager status" command.
This adds the step.
parent d27cf375
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,13 @@
become: true
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('^.*:') }}
become: true
when:
- not skip_http_proxy_on_os_packages
- http_proxy is defined
- name: Check RHEL subscription-manager status
command: /sbin/subscription-manager status
register: rh_subscription_status
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment