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

On Wednesday, August 22, 2018 at 1:11:07 PM UTC-4, Jonathan Lozada De La 
Matta wrote:
>
> can't recall if it works with spacewalk 5/ sat 5
>
> On Wed, Aug 22, 2018 at 12:56 PM Ros Ko <[email protected] <javascript:>> 
> wrote:
>
>> 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/
>> ''''
>>
>>
>> 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
>>       url: 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 
>> <module>\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: 404 Not Found>\r\n", "msg": "MODULE FAILURE", 
>> "rc": 1}
>>         to retry, use: --limit @/home/ec2-user/playbooks/epl.retry
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ansible-project/9260e9cd-3754-4967-b53a-d588cd7666fb%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/9260e9cd-3754-4967-b53a-d588cd7666fb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
>
> Jonathan lozada de la matta
>
> AUTOMATION CONSULTANT - AUTOMATION PRACTICE
>
> Red Hat Consulting Services <https://www.redhat.com/>
>
> [email protected] <javascript:>    
>
>
>  
>
>

-- 
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/1f7f88c1-b8c2-4a0a-a1d8-978a736a7582%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to