ansible / ansible

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
https://www.ansible.com/
GNU General Public License v3.0
62.47k stars 23.83k forks source link

[IOS_CONFIG] - Issue using loop #65985

Closed Woclandiner closed 4 years ago

Woclandiner commented 4 years ago
SUMMARY

When I execute the playbook with loop option I see the error below. However, when I change the playbook to use commands without loop, I don't have the same error.

ISSUE TYPE
COMPONENT NAME

ios_config

ANSIBLE VERSION
ansible 2.9.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /bin/ansible
  python version = 2.7.5 (default, Aug  7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
CONFIGURATION
DEFAULT_TIMEOUT(/etc/ansible/ansible.cfg) = 5
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
OS / ENVIRONMENT

Cisco IOS Software, C3560 Software (C3560-IPSERVICESK9-M), Version 12.2(50)SE3, RELEASE SOFTWARE (fc1)

ROM: Bootstrap program is C3560 boot loader BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(44)SE5, RELEASE SOFTWARE (fc1)

System image file is "flash:c3560-ipservicesk9-mz.122-50.SE3/c3560-ipservicesk9-mz.122-50.SE3.bin"

Switch Ports Model SW Version SW Image


STEPS TO REPRODUCE

You can uncomment the lines which use loop to test and comment lines right before.

---
- name: Configuring interface
  connection: network_cli
  gather_facts: false
  hosts: aswglabita0001

  vars_files:
    - ../vars/vault.yml
    - ../vars/vars.yml

  tasks:

    - name: Interface settings
      ios_config:
        parents: interface GigabitEthernet0/4
#        parents: interface "{{ item.interface }}"
        lines:
          - switchport mode access
          - switchport access vlan 57
#          - switchport access vlan "{{ item.vlan }}"
          - spanning-tree portfast
          - spanning-tree bpduguard enable
          - storm-control broadcast level bps 64k
          - storm-control multicast level bps 64k

        after:
          - no shutdown

      loop:
        - { interface: "GigabitEthernet0/4", vlan: 100 }

      register: print_output

    - debug: var=print_output
EXPECTED RESULTS

I expect interfaces configured like the second test bellow.

ACTUAL RESULTS

FIRST TEST with LOOP: ansible-playbook 2.9.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible-playbook python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file Vault password: setting up inventory plugins host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method Parsed /etc/ansible/hosts inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc

PLAYBOOK: config_interface.yml ***** Positional arguments: production/config_interface.yml become_method: sudo inventory: (u'/etc/ansible/hosts',) forks: 5 tags: (u'all',) verbosity: 4 connection: smart ask_vault_pass: True timeout: 5 1 plays in production/config_interface.yml Trying secret <ansible.parsing.vault.PromptVaultSecret object at 0x7fe82a04ce90> for vault_id=default Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml'

PLAY [Configuring interface] *** META: ran handlers Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml'

TASK [Interface settings] ** task path: /etc/ansible/production/config_interface.yml:13

attempting to start connection using connection plugin network_cli local domain socket does not exist, starting it control socket path is /root/.ansible/pc/b165a8a815 local domain socket listeners started successfully loaded cliconf plugin ios from path /usr/lib/python2.7/site-packages/ansible/plugins/cliconf/ios.py for network_os ios local domain socket path is /root/.ansible/pc/b165a8a815 ESTABLISH LOCAL CONNECTION FOR USER: root EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465 `" && echo ansible-tmp-1576786640.63-92822594726465="` echo /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465 `" ) && sleep 0' Attempting python interpreter discovery EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' EXEC /bin/sh -c '/usr/bin/python && sleep 0' Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/ios/ios_config.py PUT /root/.ansible/tmp/ansible-local-12737jpdjfh/tmpagYU9A TO /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/ /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py && sleep 0' EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py && sleep 0' EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/ > /dev/null 2>&1 && sleep 0' The full traceback is: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py", line 102, in _ansiballz_main() File "/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py", line 94, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py", line 40, in invoke_module runpy.run_module(mod_name='ansible.modules.network.ios.ios_config', init_globals=None, run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py", line 569, in File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py", line 500, in main File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py", line 364, in edit_config_or_macro File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__ ansible.module_utils.connection.ConnectionError: interface "GigabitEthernet0/4" interface GigabitEthernet0/4 ^ % Invalid input detected at '^' marker. aswglabita01(config)# failed: [aswglabita0001] (item={u'interface': u'GigabitEthernet0/4', u'vlan': 100}) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "item": { "interface": "GigabitEthernet0/4", "vlan": 100 }, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py\", line 102, in \n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.ios.ios_config', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py\", line 569, in \n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py\", line 500, in main\n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py\", line 364, in edit_config_or_macro\n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: interface \"GigabitEthernet0/4\"\r\ninterface GigabitEthernet0/4\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\naswglabita01(config)#\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************* aswglabita0001 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 SECOND TEST without LOOP: ansible-playbook 2.9.2 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /bin/ansible-playbook python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file Vault password: setting up inventory plugins host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method Parsed /etc/ansible/hosts inventory source with ini plugin Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/default.pyc PLAYBOOK: config_interface.yml ************************************************************************************************************************************************************************************************************************************************* Positional arguments: production/config_interface.yml become_method: sudo inventory: (u'/etc/ansible/hosts',) forks: 5 tags: (u'all',) verbosity: 4 connection: smart ask_vault_pass: True timeout: 5 1 plays in production/config_interface.yml Trying secret for vault_id=default Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' PLAY [Configuring interface] *************************************************************************************************************************************************************************************************************************************************** META: ran handlers Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' TASK [Interface settings] ****************************************************************************************************************************************************************************************************************************************************** task path: /etc/ansible/production/config_interface.yml:13 attempting to start connection using connection plugin network_cli local domain socket does not exist, starting it control socket path is /root/.ansible/pc/f2f3bdd8af local domain socket listeners started successfully loaded cliconf plugin ios from path /usr/lib/python2.7/site-packages/ansible/plugins/cliconf/ios.py for network_os ios local domain socket path is /root/.ansible/pc/f2f3bdd8af ESTABLISH LOCAL CONNECTION FOR USER: root EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358 `" && echo ansible-tmp-1576786668.72-257972986733358="` echo /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358 `" ) && sleep 0' Attempting python interpreter discovery EXEC /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'python2.6'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0' EXEC /bin/sh -c '/usr/bin/python && sleep 0' Using module file /usr/lib/python2.7/site-packages/ansible/modules/network/ios/ios_config.py PUT /root/.ansible/tmp/ansible-local-12807OkyAsh/tmplBZK8X TO /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358/AnsiballZ_ios_config.py EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358/ /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358/AnsiballZ_ios_config.py && sleep 0' EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358/AnsiballZ_ios_config.py && sleep 0' EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-local-12807OkyAsh/ansible-tmp-1576786668.72-257972986733358/ > /dev/null 2>&1 && sleep 0' changed: [aswglabita0001] => (item={u'interface': u'GigabitEthernet0/4', u'vlan': 100}) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "banners": {}, "changed": true, "commands": [ "interface GigabitEthernet0/4", "switchport mode access", "switchport access vlan 57", "spanning-tree portfast", "spanning-tree bpduguard enable", "storm-control broadcast level bps 64k", "storm-control multicast level bps 64k", "no shutdown" ], "invocation": { "module_args": { "after": [ "no shutdown" ], "auth_pass": null, "authorize": null, "backup": false, "backup_options": null, "before": null, "defaults": false, "diff_against": null, "diff_ignore_lines": null, "host": null, "intended_config": null, "lines": [ "switchport mode access", "switchport access vlan 57", "spanning-tree portfast", "spanning-tree bpduguard enable", "storm-control broadcast level bps 64k", "storm-control multicast level bps 64k" ], "match": "line", "multiline_delimiter": "@", "parents": [ "interface GigabitEthernet0/4" ], "password": null, "port": null, "provider": null, "replace": "line", "running_config": null, "save_when": "never", "src": null, "ssh_keyfile": null, "timeout": null, "username": null } }, "item": { "interface": "GigabitEthernet0/4", "vlan": 100 }, "updates": [ "interface GigabitEthernet0/4", "switchport mode access", "switchport access vlan 57", "spanning-tree portfast", "spanning-tree bpduguard enable", "storm-control broadcast level bps 64k", "storm-control multicast level bps 64k", "no shutdown" ] } Read vars_file '../vars/vault.yml' Read vars_file '../vars/vars.yml' TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************* task path: /etc/ansible/production/config_interface.yml:35 attempting to start connection using connection plugin network_cli found existing local domain socket, using it! ssh connection done, setting terminal loaded terminal plugin for network_os ios Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds firing event: on_open_shell() Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds firing event: on_become ssh connection has completed successfully Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds Response received, triggered 'persistent_buffer_read_timeout' timer of 0.1 seconds updating play_context for connection local domain socket path is /root/.ansible/pc/f2f3bdd8af ok: [aswglabita0001] => { "print_output": { "changed": true, "msg": "All items completed", "results": [ { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "banners": {}, "changed": true, "commands": [ "interface GigabitEthernet0/4", "switchport mode access", "switchport access vlan 57", "spanning-tree portfast", "spanning-tree bpduguard enable", "storm-control broadcast level bps 64k", "storm-control multicast level bps 64k", "no shutdown" ], "failed": false, "invocation": { "module_args": { "after": [ "no shutdown" ], "auth_pass": null, "authorize": null, "backup": false, "backup_options": null, "before": null, "defaults": false, "diff_against": null, "diff_ignore_lines": null, "host": null, "intended_config": null, "lines": [ "switchport mode access", "switchport access vlan 57", "spanning-tree portfast", "spanning-tree bpduguard enable", "storm-control broadcast level bps 64k", "storm-control multicast level bps 64k" ], "match": "line", "multiline_delimiter": "@", "parents": [ "interface GigabitEthernet0/4" ], "password": null, "port": null, "provider": null, "replace": "line", "running_config": null, "save_when": "never", "src": null, "ssh_keyfile": null, "timeout": null, "username": null } }, "item": { "interface": "GigabitEthernet0/4", "vlan": 100 }, "updates": [ "interface GigabitEthernet0/4", "switchport mode access", "switchport access vlan 57", "spanning-tree portfast", "spanning-tree bpduguard enable", "storm-control broadcast level bps 64k", "storm-control multicast level bps 64k", "no shutdown" ] } ] } } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************* aswglabita0001 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 ``` The full traceback is: Traceback (most recent call last): File "/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py", line 102, in _ansiballz_main() File "/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py", line 94, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py", line 40, in invoke_module runpy.run_module(mod_name='ansible.modules.network.ios.ios_config', init_globals=None, run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py", line 569, in File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py", line 500, in main File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py", line 364, in edit_config_or_macro File "/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/module_utils/connection.py", line 185, in __rpc__ ansible.module_utils.connection.ConnectionError: interface "GigabitEthernet0/4" interface GigabitEthernet0/4 ^ % Invalid input detected at '^' marker. aswglabita01(config)# failed: [aswglabita0001] (item={u'interface': u'GigabitEthernet0/4', u'vlan': 100}) => { "ansible_facts": { "discovered_interpreter_python": "/usr/bin/python" }, "ansible_loop_var": "item", "changed": false, "item": { "interface": "GigabitEthernet0/4", "vlan": 100 }, "module_stderr": "Traceback (most recent call last):\n File \"/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py\", line 102, in \n _ansiballz_main()\n File \"/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py\", line 94, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/root/.ansible/tmp/ansible-local-12737jpdjfh/ansible-tmp-1576786640.63-92822594726465/AnsiballZ_ios_config.py\", line 40, in invoke_module\n runpy.run_module(mod_name='ansible.modules.network.ios.ios_config', init_globals=None, run_name='__main__', alter_sys=True)\n File \"/usr/lib64/python2.7/runpy.py\", line 176, in run_module\n fname, loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 82, in _run_module_code\n mod_name, mod_fname, mod_loader, pkg_name)\n File \"/usr/lib64/python2.7/runpy.py\", line 72, in _run_code\n exec code in run_globals\n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py\", line 569, in \n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py\", line 500, in main\n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/modules/network/ios/ios_config.py\", line 364, in edit_config_or_macro\n File \"/tmp/ansible_ios_config_payload_Yuk_TB/ansible_ios_config_payload.zip/ansible/module_utils/connection.py\", line 185, in __rpc__\nansible.module_utils.connection.ConnectionError: interface \"GigabitEthernet0/4\"\r\ninterface GigabitEthernet0/4\r\n ^\r\n% Invalid input detected at '^' marker.\r\n\r\naswglabita01(config)#\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1 } ```
ansibot commented 4 years ago

Files identified in the description: None

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibot commented 4 years ago

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibot commented 4 years ago

cc @justjais @privateip click here for bot help

Woclandiner commented 4 years ago

@rohitthakur2590 @GomathiselviS Do you have any consideration about this issue ?

danielmellado commented 4 years ago

Thank you very much for your interest in Ansible. This plugin is no longer maintained in this repository and has been migrated to https://github.com/ansible-collections/cisco.ios Please re-submit this issue in the above repository. If you have further questions please stop by IRC or the mailing list:

IRC: #ansible-network on irc.freenode.net mailing list: https://groups.google.com/forum/#!forum/ansible-project