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?