Hi
I have a requirement to run playbook on hyperv compute nodes (windows) i
tried the method mentioned to keep all variables .
ansible_ssh_user: Administrator
ansible_ssh_pass: password
ansible_ssh_port: 5986
ansible_connection: winrm
I use dynamic inventory to get the target hosts dynamically. Since the
hosts are not static and they keep changing i cannot keep the above
variables in a static file in group_vars
Question is can group_vars be passed as part of the dynamic inventory json
? Can i have a section in _meta as group_vars ? if yes what would be the
structure ?
{
"_meta": {
"hostvars": {
"192.168.0.68": {
"username": "Administrator",
"hypervisor_type": "hyperv",
"hypervisor_id_list": [
"2"
],
"password": "password",
"port": "5986"
}
}
},
"computenodes": {
"hosts": [
"192.168.0.68"
]
}
}
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/54d59730-8f73-4402-b008-4fb7b4ee136e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.