Fix async commands
Fixes a regression introduced in d1b5681ba0
.
Looks like `.finished` is a property on the main object, not on some
`.async_result` object.
This commit is contained in:
@ -108,5 +108,5 @@
|
||||
async: "{{ postgres_import_wait_time }}"
|
||||
poll: 10
|
||||
register: matrix_postgres_import_postgres_command_result
|
||||
failed_when: not matrix_postgres_import_postgres_command_result.async_result.finished
|
||||
changed_when: matrix_postgres_import_postgres_command_result.async_result.finished and matrix_postgres_import_postgres_command_result.rc == 0
|
||||
failed_when: not matrix_postgres_import_postgres_command_result.finished
|
||||
changed_when: matrix_postgres_import_postgres_command_result.finished and matrix_postgres_import_postgres_command_result.rc == 0
|
||||
|
@ -78,8 +78,8 @@
|
||||
async: "{{ postgres_vacuum_wait_time }}"
|
||||
poll: 10
|
||||
register: matrix_postgres_synapse_vacuum_result
|
||||
failed_when: not matrix_postgres_synapse_vacuum_result.async_result.finished
|
||||
changed_when: matrix_postgres_synapse_vacuum_result.async_result.finished and matrix_postgres_synapse_vacuum_result.rc == 0
|
||||
failed_when: not matrix_postgres_synapse_vacuum_result.finished
|
||||
changed_when: matrix_postgres_synapse_vacuum_result.finished and matrix_postgres_synapse_vacuum_result.rc == 0
|
||||
|
||||
# Intentionally show the results
|
||||
- ansible.builtin.debug: var="matrix_postgres_synapse_vacuum_result"
|
||||
|
Reference in New Issue
Block a user