Hi,
I have a problem with the ios_command and the C9200L switch when updating
the IOS-XE. One step of the upgrade is
On step is to remove inactive IOS versions:
#install remove inactive
(...)
Do you want to remove the above files? [y/n]
the part of the playbook looks like:
---
- hosts: cisco
tasks:
- name: Upgrade IOS-XE
block:
- name: remove old OS files
ios_command:
commands:
- command: install remove inactive
prompt: '[y/n]'
answer: 'y'
vars:
ansible_command_timeout: 180
when: (ansible_net_version != compliant_ios_version) and
(ansible_net_model is regex("9200"))
Anytime I run this playbook this tasks fails with the timeout. 180 sec
should be enough time to delete the files.
I tried to prolong the timeout value, and all combinations of the full text
of the question and backslashes in front of the brackets and the forward
slash.
Always timeout.
Any ideas?
Michael Schwartzkopff
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0aae16a2-4463-4828-a3e5-bdf9190ce35e%40googlegroups.com.