Merge pull request #3141 from qeqar/bad-hostname
allow '.' in hostnames for verify bad hostnamespull/3149/head
commit
7398858572
|
@ -106,6 +106,6 @@
|
||||||
|
|
||||||
- name: Stop if bad hostname
|
- name: Stop if bad hostname
|
||||||
assert:
|
assert:
|
||||||
that: inventory_hostname | match("[a-z0-9]([-a-z0-9]*[a-z0-9])?$")
|
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"
|
msg: "Hostname must consist of lower case alphanumeric characters, '.' or '-', and must start and end with an alphanumeric character"
|
||||||
ignore_errors: "{{ ignore_assert_errors }}"
|
ignore_errors: "{{ ignore_assert_errors }}"
|
||||||
|
|
Loading…
Reference in New Issue