Browse Source

Merge pull request #3141 from qeqar/bad-hostname

allow '.' in hostnames for verify bad hostnames
pull/3149/head
Antoine Legrand 6 years ago
committed by GitHub
parent
commit
7398858572
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. 4
      roles/kubernetes/preinstall/tasks/verify-settings.yml

4
roles/kubernetes/preinstall/tasks/verify-settings.yml

@ -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…
Cancel
Save