Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long running ansible playbook jobs on windows hosts are not working properly #12804

Closed
Bchoudhury92 opened this issue Sep 1, 2022 · 2 comments

Comments

@Bchoudhury92
Copy link

Bchoudhury92 commented Sep 1, 2022

Hi Team,

I have a scenario where I am using Linux7 controller machine to install a patch on an windows 2016 server.
The patch manually takes 3-4 hours to complete. However, whenever I am running the patch from ansible playbook, the execution is not completing.
Similar patches with less runtime (say less than 20-30 mins) are completing successfully but the one with longer execution time is not completing even if I leave it overnight to complete. The log file gets created at the end of patch completion so I am not able to track it either. Below is the code I am running
Please help!

  - name: apply patch
    win_shell: 'cmd /c {{comp_installer_loc_dir}}/apply_patch.bat'
    async: 4000000
    poll: 0
    register: async_job
    ignore_errors: yes

  - name: check async job status
    async_status:
       jid: "{{ async_job.ansible_job_id }}"
    register: job_result
    until: job_result.finished
    retries: 100
    delay: 900
@akus062381
Copy link
Member

Hi @Bchoudhury92,

You did not specify what version you are on- This problem is likely part of this issue:
#11805

Could you please update to the latest version and see if you are still dealing with this error?

@mabashian
Copy link
Member

@Bchoudhury92

Thank you very much for for this issue. It means a lot to us that you have taken time to contribute by opening this report.

On this issue, there were comments added but it has been some time since then without response. At this time we are closing this issue. If you get time to address the comments we can reopen the issue if you can contact us by using any of the communication methods listed in the page below:

https://github.com/ansible/awx/#get-involved

Thank you once again for this and your interest in AWX!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants