Skip to content

Commit

Permalink
Make use of the new --exists-ok flag for register_new_matrix_user
Browse files Browse the repository at this point in the history
  • Loading branch information
spantaleev authored and venimus committed Jul 19, 2024
1 parent d598b05 commit aefb1e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-t {{ user.initial_type | quote }}
{% endif %}
{% endif %}
--exists-ok
http://localhost:{{ matrix_synapse_container_client_api_port }}
register: matrix_synapse_register_user_result
changed_when: matrix_synapse_register_user_result.rc == 0 and 'User ID already taken' not in matrix_synapse_register_user_result.stdout
failed_when: matrix_synapse_register_user_result.rc != 0 and 'User ID already taken' not in matrix_synapse_register_user_result.stdout
changed_when: matrix_synapse_register_user_result.rc == 0 and 'User already exists' not in matrix_synapse_register_user_result.stdout

0 comments on commit aefb1e7

Please sign in to comment.