mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-15 20:00:47 -03:30
allow '.' in hostnames
we use FQDN as inventory_hostname
This commit is contained in:
parent
08353f291b
commit
0c0a2138d9
@ -106,6 +106,6 @@
|
||||
|
||||
- name: Stop if bad hostname
|
||||
assert:
|
||||
that: inventory_hostname | match("[a-z0-9]([-a-z0-9]*[a-z0-9])?$")
|
||||
msg: "Hostname must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character"
|
||||
that: inventory_hostname | match("[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$")
|
||||
msg: "Hostname must consist of lower case alphanumeric characters, '.' or '-', and must start and end with an alphanumeric character"
|
||||
ignore_errors: "{{ ignore_assert_errors }}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user