# Configure rhn\_channel module for Spacewalk

**URL:** <https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399>\
**Category:** Ansible Project\
**Created:** [August 22, 2018, 4:56pm UTC](https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399 "2018-08-22T16:56:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rashard](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Rashard](https://forum.ansible.com/u/Rashard)\
**Post date:** [August 22, 2018, 4:56pm UTC](https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399/1 "2018-08-22T16:56:39Z")

</div>

Hi! Im trying to get ansible to talk to our local spacewalk server but its not working.

If I use the epl repo it works fine with this block

‘’‘’

# - name: Add repository

# yum\_repository:

# name: epel

# description: EPEL YUM repo

# baseurl: [https://dl.fedoraproject.org/pub/epel/$releasever/$basearch/](https://dl.fedoraproject.org/pub/epel/$releasever/$basearch/)

‘’‘’

But when I try to manage via spacewalk directly it fails. The password and user are correct.

- rhn\_channel:  
name: atlantic-rh-el6-x86\_64  
sysname: [spacewalk.ccrt.us](http://spacewalk.ccrt.us)  
url: [https://spacewalk.ccrt.us/rhn/api](https://spacewalk.ccrt.us/rhn/api)  
user: admin  
password: admin

TASK [rhn\_channel] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [10.90.3.44]: FAILED! =\> {“changed”: false, “module\_stderr”: “Shared connection to 10.90.3.44 closed.\r\n”, “module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_mB8lyM/ansible\_module\_rhn\_channel.py", line 145, in \r\n main()\r\n File "/tmp/ansible\_mB8lyM/ansible\_module\_rhn\_channel.py", line 118, in main\r\n session = client.auth.login(user, password)\r\n File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in **call** \r\n return self.\_\_send(self.\_\_name, args)\r\n File "/usr/lib64/python2.7/xmlrpclib.py", line 1591, in \_\_request\r\n verbose=self.\_\_verbose\r\n File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request\r\n return self.single\_request(host, handler, request\_body, verbose)\r\n File "/usr/lib64/python2.7/xmlrpclib.py", line 1321, in single\_request\r\n response.msg,\r\nxmlrpclib.ProtocolError: \<ProtocolError for [spacewalk.ccrt.us/rhn/api:](http://spacewalk.ccrt.us/rhn/api:) 404 Not Found\>\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1}  
to retry, use: --limit @/home/ec2-user/playbooks/epl.retry

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [August 22, 2018, 5:10pm UTC](https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399/2 "2018-08-22T17:10:46Z")

</div>

can’t recall if it works with spacewalk 5/ sat 5

---

<div class="post-metadata">

**Author:** ![Rashard](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@Rashard](https://forum.ansible.com/u/Rashard)\
**Post date:** [August 22, 2018, 6:04pm UTC](https://forum.ansible.com/t/configure-rhn-channel-module-for-spacewalk/28399/3 "2018-08-22T18:04:08Z")

</div>

Im going to build a rhel7 spacewalk server and see if the problem goes away. Thanks!
