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]> 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].
> 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/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/CAD8N0v9VziCrZnGXbJ10fknx4GL%2Bzi4sziNc6zZJdj%3DY0%2Bv1eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to