-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: