rhn_channel task failing - internal error 500 returned from Satellite server

I’m having problems using rhn_channel to subscribe to channels

  • name: enable rhn chans
    rhn_channel: name={{ item }} url=https://internal.sat.server/rpc/api user=xxx password=xxx sysname={{ ansible_hostname }}
    with_items:
  • els-packages
  • epel-6-x86_64
  • rhel-x86_64-server-optional-6
  • rhel-x86_64-server-supplementary-6
  • rhn-tools-rhel-x86_64-server-6

When I run the playbook, I get:

TASK: [enable rhn chans] ******************************************************
fatal: [rhel6vm3] => failed to parse: Traceback (most recent call last):
File “/root/.ansible/tmp/ansible-1392040912.39-59291125339369/rhn_channel”, line 1176, in
main()
File “/root/.ansible/tmp/ansible-1392040912.39-59291125339369/rhn_channel”, line 137, in main
subscribe_channels(channelname, client, session, systname, sys_id)
File “/root/.ansible/tmp/ansible-1392040912.39-59291125339369/rhn_channel”, line 79, in subscribe_channels
return client.channel.software.setSystemChannels(session, sys_id, c)
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1199, in call
return self.__send(self.__name, args)
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1489, in __request
verbose=self.__verbose
File “/usr/lib64/python2.6/xmlrpclib.py”, line 1243, in request
headers
xmlrpclib.ProtocolError: <ProtocolError for internal.sat.server/rpc/api: 500 Internal Server Error>

FATAL: all hosts have already failed – aborting

When the system is already subscribed to a channel that’s in the listed items, the return result is “OK” - this is expected. The user does have appropriate credentials to modify channel subscriptions - I login to Satellite to do this manually as needed. Am I missing something?

Can you find out anything from the Satellite logs about what the 500 error was?

Have tried restarting satellite? Some updates require this.
Which version of satellite is this?