Closed Woclandiner closed 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.
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.
cc @justjais @privateip click here for bot help
@rohitthakur2590 @GomathiselviS Do you have any consideration about this issue ?
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
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
CONFIGURATION
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.
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