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 committed Jul 4, 2024
1 parent c72cf3a commit 752de44
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 @@
--user_type={{ 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 752de44

Please sign in to comment.