Hi all,
is there a way to escape the dash/minus in the hostname (when using numbers)
hostfile:
test1 ansible_host=10-1
test2 ansible_host="10-1"
Result:
bash-4.4# ansible-inventory -i hosts --list
{
"_meta": {
"hostvars": {
"test1": {
"ansible_host": 9
},
"test2": {
"ansible_host": 9
}
}
},
"all": {
"children": [
"ungrouped"
]
},
"ungrouped": {
"hosts": [
"test1",
"test2"
]
}
}
The ansible-inventory made a calculation for the var ....
Thanks & regards
CWollinger
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/0061cc9d-d2f2-43f4-8f70-ad60c720b5ado%40googlegroups.com.