Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ios_config does not handle confirm prompt when saving first time after iOS version change #57745

Open
jrunu opened this issue Jun 12, 2019 · 4 comments

Comments

Projects
None yet
3 participants
@jrunu
Copy link

commented Jun 12, 2019

SUMMARY

ios_config does not handle confirmation prompt when saving a configuration first time after a ios version change.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ios_config

ANSIBLE VERSION
ansible 2.7.10
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]

CONFIGURATION
empty
OS / ENVIRONMENT

Cisco iOS

STEPS TO REPRODUCE

Reload the iOS device after changing the iOS image in the boot loader.

- hosts: all
  gather_facts: false
  tasks:
    - ios_config:
        save_when: always
EXPECTED RESULTS

Running-config is copied/saved to/as startup-config

ACTUAL RESULTS

The running-config is not copied over. The task fails because it hangs until ansible_command_timeout is triggered. This is because iOS wants an explicit confirmation when first writing a config after a versions change:

Warning: Attempting to overwrite an NVRAM configuration previously written
by a different version of the system image.
Overwrite the previous NVRAM configuration?[confirm]

file prompt quiet does not affect this prompt.

@jrunu jrunu changed the title ios_config does not handle confirm prompt when saving after iOS version change ios_config does not handle confirm prompt when saving first time after iOS version change Jun 12, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2019

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

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

commented Jun 12, 2019

@jrunu, just so you are aware we have a dedicated Working Group for network.
You can find other people interested in this in #ansible-network on Freenode IRC
For more information about communities, meetings and agendas see https://github.com/ansible/community

click here for bot help

@ansibot

This comment has been minimized.

Copy link
Contributor

commented Jun 27, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.