Skip to content
Snippets Groups Projects
Commit 0c0a2138 authored by Mark Eisenblaetter's avatar Mark Eisenblaetter
Browse files

allow '.' in hostnames

we use FQDN as inventory_hostname
parent 08353f29
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,6 @@ ...@@ -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 }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment