There doesn't seem to be any way to pass additional options 
<https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/packaging/os/rhn_register.py#L256>
 
to the rhnreg_ks command that the rhn_register Ansible module builds up.

The only two workarounds I can think off are:


a) Amend the /etc/sysconfig/rhn/up2date config file and specify the proxy 
details in there. See this SO answer <http://serverfault.com/a/439072> as 
there may be missing config lines for proxyPassword / proxyUser which you 
will need to add manually.


b) if you replace /usr/sbin/rhnreg_ks with a script which calls the 
original /usr/sbin/rhnreg_ks with the --proxy + --proxyUser 
+ --proxyPassword options + whatever is passed on the command line.


Both of those are ugly since with a) you have credentials saved in a file 
and with b) your modifying sbin contents.

You should raise a Github issue <https://github.com/ansible/ansible/issues> 
for this feature request.

On Tuesday, 31 January 2017 13:50:21 UTC, pvp1932 wrote:
>
> Hello,
>
> a request for module rhn_register to add --proxy option of therhnreg_ks 
> command,  to the module for target servers that do not have direct access 
> to the public network.
>
> regards,
>
> pvp1932
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6121039d-5f17-4f44-bb0b-3e81ebe9b643%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to