-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
- name: Async block | ||
block: | ||
- name: "Managing Controller Job Templates | Wait for finish the Job Templates management" | ||
ansible.builtin.async_status: | ||
jid: "{{ __job_templates_job_async_result_item.ansible_job_id }}" | ||
register: __job_templates_job_async_result | ||
until: __job_templates_job_async_result.finished | ||
retries: "{{ controller_configuration_job_templates_async_retries }}" | ||
delay: "{{ controller_configuration_job_templates_async_delay }}" | ||
|
||
rescue: | ||
- name: Removing variables existance from result_file | ||
ansible.builtin.replace: | ||
path: "{{ __job_templates_job_async_result.results_file }}" | ||
regexp: '\{\{.*?\}\}' | ||
replace: '' | ||
|
||
- name: "Load error details" | ||
ansible.builtin.include_vars: | ||
file: "{{ __job_templates_job_async_result.results_file }}" | ||
name: __error_data | ||
|
||
- name: "Building list of not processed templates" | ||
ansible.builtin.set_fact: | ||
__templates_error_list: "{{ __templates_error_list | default([]) + [ { | ||
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
Check warning on line 26 in roles/job_templates/tasks/async.yml GitHub Actions / pre-commit / changelogjinja[spacing]
|
||
'name': __error_data['invocation']['module_args']['name'], | ||
'project_name': __error_data['invocation']['module_args']['project'], | ||
'playbook': __error_data['invocation']['module_args']['playbook'], | ||
'inventory': __error_data['invocation']['module_args']['inventory'], | ||
'credentials': __error_data['invocation']['module_args']['credentials'], | ||
'error': __error_data['msg'] | ||
} | ||
] | ||
}}" | ||
... |