<div dir="auto">I personally found that she'll isn't as useful as the python sdk. I usually open up ipython, load the sdk and interact with ovirt directly. This is faster and much more powerful than the shell could ever be. </div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 30, 2016 11:22 AM, "Nathanaël Blanchet" <<a href="mailto:blanchet@abes.fr">blanchet@abes.fr</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Interesting work and thank you for this stuff. I played with some
modules (ovirt_vms_facts) to get some vms name for example.<br>
</p>
<ul>
<li>[root@acore ovirt]# ansible-playbook All_Vms_list.yml
<br>
</li>
<li>with <br>
- name: List vms<br>
ovirt_vms_facts:<br>
auth: "{{ ovirt_auth }}"<br>
pattern: name=test_cloud<br>
fetch_nested: true<br>
nested_attributes: name<br>
register: ovirt_vms<br>
<br>
- shell: echo "{{ <a href="http://ovirt_vms.name" target="_blank">ovirt_vms.name</a> }} > vms_name" // doesn't
work</li>
</ul>
<ul>
<li> - shell: echo "{{ ovirt_vms }} > vms_name // returns an
unicode json file, that's surely why we can't parse it. Can you
help me to solve this into the ovirt_vms_facts.py file?</li>
</ul>
<ul>
<li>I have no such problem with ovirt_snaphots_module and I can
easily get the <a href="http://snaphot.id" target="_blank">snaphot.id</a> variable.... but:</li>
<ul>
<li>I had to manually copy the ovirt_snaphsots_module because it
is not present on the git tree. This is very curious: we can
find it here
<a class="m_5747256721902447049moz-txt-link-freetext" href="http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ovirt_snapshots_module.htm" target="_blank">http://ovirt-ansible-modules.<wbr>readthedocs.io/en/latest/_<wbr>modules/ovirt_snapshots_<wbr>module.htm</a>,
but it is not available on the main ansible git tre.</li>
<li>On the doc, return values are not described</li>
</ul>
</ul>
<p>For the moment, my opinion is that ansible can't be as much
convinient as the current CLI, e.g. ovirt-shell -E "list vms", out
of the box. Is there a really reason to deprecate it?<br>
</p>
<br>
<div class="m_5747256721902447049moz-cite-prefix">Le 02/12/2016 à 14:12, Ondra Machacek a
écrit :<br>
</div>
<blockquote type="cite">Hello all,
<br>
<br>
I would like to kindly ask everyone who is Ansible or oVirt user
for
<br>
testing of the new Ansible oVirt modules. For everyone who is
familiar
<br>
with the Ansible and oVirt, this[1] describes the steps you need
to do,
<br>
to setup oVirt modules library and start using those modules (Most
of those modules will be available in Ansible 2.3, some of them
are already in 2.2).
<br>
<br>
If you have any issue setting this up, please contact me, I will
do the
<br>
best to help you.
<br>
<br>
If you have an issue, which you think is a bug, please open an
issue
<br>
here[2]. Please note that Ansible is merging it's repositories, so
since
<br>
next week it will actually be stored here[3]. If you are missing
<br>
anything please open an issue as well, or just contact me, and I
will
<br>
do fix it. You are also very welcome to sent PR with fixes.
<br>
<br>
For those who don't have testing environment which can test
against,
<br>
I've created an Vagrant project which will deploy you the oVirt
instance
<br>
using Ansible playbooks. You can find how to use it here[4].
<br>
<br>
The repository also contains few examples[5], so you don't have to
<br>
copy-paste them from the source.
<br>
<br>
Thanks all for reading this and any feedback,
<br>
Ondra
<br>
<br>
[1] <a class="m_5747256721902447049moz-txt-link-freetext" href="https://github.com/machacekondra/ovirt-tests/releases/tag/0.1" target="_blank">https://github.com/<wbr>machacekondra/ovirt-tests/<wbr>releases/tag/0.1</a>
<br>
[2] <a class="m_5747256721902447049moz-txt-link-freetext" href="https://github.com/ansible/ansible-modules-extras/issues" target="_blank">https://github.com/ansible/<wbr>ansible-modules-extras/issues</a>
<br>
[3] <a class="m_5747256721902447049moz-txt-link-freetext" href="https://github.com/ansible/ansible" target="_blank">https://github.com/ansible/<wbr>ansible</a>
<br>
[4] <a class="m_5747256721902447049moz-txt-link-freetext" href="https://github.com/machacekondra/ovirt-tests" target="_blank">https://github.com/<wbr>machacekondra/ovirt-tests</a>
<br>
[5]
<a class="m_5747256721902447049moz-txt-link-freetext" href="https://github.com/machacekondra/ovirt-tests/tree/master/examples" target="_blank">https://github.com/<wbr>machacekondra/ovirt-tests/<wbr>tree/master/examples</a>
<br>
______________________________<wbr>_________________
<br>
Users mailing list
<br>
<a class="m_5747256721902447049moz-txt-link-abbreviated" href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>
<br>
<a class="m_5747256721902447049moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a>
<br>
</blockquote>
<br>
<pre class="m_5747256721902447049moz-signature" cols="72">--
Nathanaël Blanchet
Supervision réseau
Pôle Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5         
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class="m_5747256721902447049moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr" target="_blank">blanchet@abes.fr</a> </pre>
</div>
<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div></div>