This small playbook:
- get the list of registered VMs and dump in a temporary json file (tag discover)
- create or edit a page on Confluence (tag report)
You can reuse the task confluence-page.yaml to generate automatically pages via Ansible
TBD: get vCPU and Memory
Usage:
ansible-playbook vm-inventory -t discover,report