Extending Ansible, dmidecode module for ansible collects system information
such as BIOS specs, Processor specs and System specs and returns results in
JSON. This uses dmidecode Python API and Ansible Python API.
- Add remote machine IP to 'remote' section in hosts
- Play the ansible playbook
$ ansible-playbook -i hosts dmidecode.yaml
- Run ansible playbook programatically using Ansible Python API
- Render hosts file at runtime using jinja2 template
$ python pydmidecode.py