Anyone successfully used the Ansible module of proxmox_kvm to get a MAC address of a VM for a PXE install?
Here is the task code:
Playbook results:
PLAY [test]
TASK [Get Facts]
ok: [test]
TASK [debug]
According to proxmox_kvm_module.html return-values at docs dot ansible dot com, it should return the MAC address of the VM?
So, has anyone able to get a MAC address of a Proxmox VM?
Here is the task code:
- name: Get Facts
proxmox_kvm:
api_user: "root@pam"
api_password: test
api_host: test
node: test
name: test
validate_certs: no
state: current
register: stuff
- debug: msg="{{ stuff }}"
proxmox_kvm:
api_user: "root@pam"
api_password: test
api_host: test
node: test
name: test
validate_certs: no
state: current
register: stuff
- debug: msg="{{ stuff }}"
Playbook results:
PLAY [test]
TASK [Get Facts]
ok: [test]
TASK [debug]
ok: [test] => {
"msg": {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"failed": false,
"msg": "VM test with vmid = 100 is stopped",
"status": "stopped",
"warnings": [
"Platform ..."
]
}
}
"msg": {
"ansible_facts": {
"discovered_interpreter_python": "/usr/bin/python"
},
"changed": false,
"failed": false,
"msg": "VM test with vmid = 100 is stopped",
"status": "stopped",
"warnings": [
"Platform ..."
]
}
}
According to proxmox_kvm_module.html return-values at docs dot ansible dot com, it should return the MAC address of the VM?
So, has anyone able to get a MAC address of a Proxmox VM?