Add a playbook implementation of list-vm's per host

This commit is contained in:
Kevin Fenzi 2015-11-20 23:04:17 +00:00
parent 7b8d58fa80
commit 2e8d14a5e0
2 changed files with 26 additions and 0 deletions

6
files/virthost-lists.j2 Normal file
View file

@ -0,0 +1,6 @@
{% for key, value in virt_info.items() %}
{% if value and 'state' in value %}
{{inventory_hostname}}:{{key}}:{{value['state']}}:{{value['autostart']}}:{{value['nrVirtCpu']}}:{{value['memory']}}
{% else %}
{% endif %}
{% endfor %}