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 <module>
    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?

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to