-
Notifications
You must be signed in to change notification settings - Fork 9
hostname with -\d+ crash the installation #130
Comments
can't we use ideascube_project_name instead of hostname ? |
I don't understand how the line https://github.com/ideascube/ansiblecube/blob/oneUpdateFile/roles/set_custom_fact/tasks/main.yml#L91 could replace unexpectedly the hostname.
Further in the playbook I use
Does this answer help you ? |
let's say the hostname: '-123', then ansible_hostname would be something like '-123-999'. after replace it would be '' using the end of line marker would resolve the regex, something like this: '-\d+$' |
The regex is loose because it worked for us and our undefined-but-consistent naming scheme, and we don't plan to ship any box named |
because of the following rule https://github.com/ideascube/ansiblecube/blob/oneUpdateFile/roles/set_custom_fact/tasks/main.yml#L91
(but there other same replacement)
the hostname is modified unexpectedly and so not found in device list
The text was updated successfully, but these errors were encountered: