allow '.' in hostnames

we use FQDN as inventory_hostname
pull/3141/head
Mark Eisenblaetter 2018-08-20 15:06:52 +02:00
parent 08353f291b
commit 0c0a2138d9
1 changed files with 2 additions and 2 deletions

View File

@ -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 }}"