Hello Everyone,

I have a task, where I need to run shell command which takes 22-25 min to 
execute after that it reboots the system. 
when playbook runs command execute successfully reboot the system but after 
some time its gives the error " async task did not complete within the 
requested time"

here is my playbook:
- name: Task | swupgrade execution started on new {{ component_name }} 
system
  command:  sudo -i  /opt/bin/swupgrade -U {{ component_name }}-{{ 
to_version }}.tar
  async: 1800
  poll: 5
  ignore_errors: yes


- name: Wait for SSH to come up
  local_action:
    module: wait_for
    host: "{{ inventory_hostname  }}"
    port: 22
    delay: 5
    timeout: 720
    state: started
  register: ssh_up
  ignore_errors: yes

Can you let me know what I am doing here wrong?

-- 
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+unsubscr...@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/a701abe7-6066-481e-bff5-282861950001%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to