# request for module rhn\_register

**URL:** <https://forum.ansible.com/t/request-for-module-rhn-register/23601>\
**Category:** Ansible Project\
**Created:** [January 31, 2017, 3:12am UTC](https://forum.ansible.com/t/request-for-module-rhn-register/23601 "2017-01-31T03:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvp1932](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@pvp1932](https://forum.ansible.com/u/pvp1932)\
**Post date:** [January 31, 2017, 3:12am UTC](https://forum.ansible.com/t/request-for-module-rhn-register/23601/1 "2017-01-31T03:12:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jinesh\_Choksi](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@Jinesh\_Choksi](https://forum.ansible.com/u/Jinesh_Choksi)\
**Post date:** [February 1, 2017, 11:34am UTC](https://forum.ansible.com/t/request-for-module-rhn-register/23601/2 "2017-02-01T11:34:35Z")

</div>

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.
