1
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2025-06-12 22:17:28 +02:00

Fixed regex for checking the hostname.

This commit is contained in:
Backslash
2024-09-25 18:39:26 +10:00
committed by GitHub
parent 350d4d4bcd
commit 90ea758c3b

@ -21,7 +21,7 @@
- name: Validate that the Element Call hostname is properly formatted
ansible.builtin.assert:
that:
- matrix_element_call_hostname is match('^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9])$')
- matrix_element_call_hostname is match('^([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9]\.)+[a-zA-Z]{2,}$')
fail_msg: "The hostname '{{ matrix_element_call_hostname }}' is not valid. It should be a valid domain or subdomain."
success_msg: "The hostname '{{ matrix_element_call_hostname }}' is valid."