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

Reply via email to