I was trying to copy a file from remote server to the host using junipernetworks.junos.junos_command module but i am getting command timeout error. I tried to use wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT in vars and async poll as well but it did not help
ISSUE TYPE
Getting command timeout triggered, timeout value is 30 secs in junipernetworks.junos.junos_command module. I was trying to copy a file to the host from remote server. It might take around 5-6 mins. So i changed the default command timeout using asyn/poll, wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT but nothing helped.
COMPONENT NAME
junipernetworks.junos.junos_command
##### OS / ENVIRONMENT
Network os Junos
##### STEPS TO REPRODUCE
Try to copy a file from jump server to the host using junipernetworks.junos.junos_command
name: play book to get the version of the device and copy image files from remote device
hosts: '{{ hostname }}'
become: 'yes'
gather_facts: 'no'
connection: network_cli
vars_prompt:
name: hostname
prompt: 'Enter the Junos SRX hostname:'
private: 'no'
I was trying to copy a file from remote server to the host using junipernetworks.junos.junos_command module but i am getting command timeout error. I tried to use wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT in vars and async poll as well but it did not help
ISSUE TYPE Getting command timeout triggered, timeout value is 30 secs in junipernetworks.junos.junos_command module. I was trying to copy a file to the host from remote server. It might take around 5-6 mins. So i changed the default command timeout using asyn/poll, wait_for : timeout , ANSIBLE_PERSISTENT_COMMAND_TIMEOUT but nothing helped.
COMPONENT NAME junipernetworks.junos.junos_command
ANSIBLE VERSION
COLLECTION VERSION
`` ksaran@buildnet6200:/etc/ansible/playbooks# ansible-galaxy collection list junipernetworks.junos
/home/user/.ansible/collections/ansible_collections
Collection Version
junipernetworks.junos 5.3.0
/usr/local/lib/python3.8/site-packages/ansible_collections
Collection Version
junipernetworks.junos 3.1.0
HOST_KEY_CHECKING(/etc/ansible/ansible.cfg) = False
junipernetworks.junos.junos_command: commands:
EXPECTED RESULTS
File needs to be copied from jump server to host
ACTUAL RESULTS