---
- hosts: arista
gather_facts: no
connection: local
strategy: free
tasks:
- name: download software
ignore_errors: yes
eos_command:
host: arista
username: admin
password: xyz
authorize: yes
commands:
- copy scp://ad...@1.1.1.1/sw/software_file flash:software_file
register: test
- name: password enter
ignore_errors: yes
eos_command:
host: admin
username: admin
password: xyz
ignore_errors: yes
authorize: yes
commands:
- the_password
when: “’password_prompt’ in test"
thanks.
jb
--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fc55eed2-32d3-4b56-934a-055a64004a5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/645bec83-b5b1-45be-9dc7-73c918ea7184%40googlegroups.com.