Below is the output from the command.

DEFAULT_MODULE_PATH(/etc/ansible/ansible.cfg) = [u'/usr/share/my_modules', 
u'/opt/rh/python27/root/usr/lib/python2.7/site-packages/icontrol', 
u'/usr/lib/python2.7/site-packages/ansible/utils/module_docs_fragments'] 

DEFAULT_ROLES_PATH(/etc/ansible/ansible.cfg) = [u'/etc/ansible/roles', 
u'/usr/share/ansible/roles'] 
PARAMIKO_HOST_KEY_AUTO_ADD(/etc/ansible/ansible.cfg) = True 

On Tuesday, February 19, 2019 at 10:37:53 PM UTC+5:30, Matt Martz wrote:
>
> The problem for whatever reason, is that ansible has been instructed to 
> look in 
> /opt/rh/python27/root/usr/lib/python2.7/site-packages/setuptools/command/ 
> for ansible modules.
>
> It located a file named register.py in that directory, and it is causing 
> issues with ansible.
>
> You may have some misconfiguration that is causing this, and using 
> `ansible-config dump --only-changed` may reveal the issue.
>
> On Tue, Feb 19, 2019 at 11:03 AM sajal tiwari <[email protected] 
> <javascript:>> wrote:
>
>> The script being used.
>>
>> # For Cisco Devices
>>  - hosts: Cisco_SW
>>    gather_facts: true
>>    connection: local
>>
>>
>>    tasks:
>>      - name: show run
>>        ios_command:
>>          commands:
>>            - show run
>>          host: "{{ ansible_host }}"
>>          username: "{{ un }}"
>>          password: "{{ pwd }}"
>>        register: config
>>
>>      - name: save output to /etc/ansible/backups
>>        copy:
>>          content: "{{ config.stdout[0] }}"
>>          dest: "/etc/ansible/backups/show_run_{{ inventory_hostname 
>> }}_{{ansible_date_time.date}}.txt"
>>
>>
>> On Tuesday, February 19, 2019 at 10:24:27 PM UTC+5:30, sajal tiwari wrote:
>>>
>>> Hello,
>>> I am getting below error while using register module with network 
>>> modules(ios_command & nxos_command).
>>> Can someone help on the issue.
>>>
>>> ERROR! Module "register" shadows the name of a reserved keyword. Please 
>>> rename or remove this module. Found at 
>>> /opt/rh/python27/root/usr/lib/python2.7/site-packages/setuptools/command/register.py
>>>
>> -- 
>> 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/4499d37c-b9f8-4c85-ab3f-e2a608f4dbf2%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ansible-project/4499d37c-b9f8-4c85-ab3f-e2a608f4dbf2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Matt Martz
> @sivel
> sivel.net
>

-- 
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/303266db-adc6-4b70-ba54-5b4dccde6aeb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to