mirror of
https://github.com/ublue-os/forge.git
synced 2025-07-19 08:05:45 +03:00
fix(ansible): make long running tasks asynchronous (#42)
This commit is contained in:
parent
b27332d148
commit
ba1eb2bc79
2 changed files with 32 additions and 5 deletions
|
@ -22,8 +22,20 @@
|
|||
dest: "{{ forge_registry_url }}"
|
||||
vars:
|
||||
__regex_search: (?<=/)[^/]+(?=\.git)
|
||||
register: __podman_image_info
|
||||
async: 1800
|
||||
poll: 0
|
||||
register: __podman_image
|
||||
|
||||
- name: Waiting for container build to finish
|
||||
ansible.builtin.async_status:
|
||||
jid: "{{ __podman_image.ansible_job_id }}"
|
||||
register: __job_result
|
||||
until: __job_result.finished
|
||||
retries: 1800
|
||||
delay: 1
|
||||
|
||||
- name: INFO | Status from build and push
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ __podman_image_info }}"
|
||||
msg:
|
||||
- "{{ __job_result.actions | to_nice_yaml(indent=2) }}"
|
||||
- "{{ __job_result.image | to_nice_yaml(indent=2) }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue