This is a multi-part message in MIME format.
--------------F3B82204041E8AEDBE75F1BE
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
Interesting work and thank you for this stuff. I played with some=20
modules (ovirt_vms_facts) to get some vms name for example.
* [root@acore ovirt]# ansible-playbook All_Vms_list.yml
* with
- name: List vms
ovirt_vms_facts:
auth: "{{ ovirt_auth }}"
pattern: name=3Dtest_cloud
fetch_nested: true
nested_attributes: name
register: ovirt_vms
- shell: echo "{{ ovirt_vms.name }} > vms_name" // doesn't work
* - 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?
* I have no such problem with ovirt_snaphots_module and I can easily
get the snaphot.id variable.... but:
o 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
http://ovirt-ansible-modules.readthedocs.io/en/latest/_modules/ov=
irt_snapshots_module.htm,
but it is not available on the main ansible git tre.
o On the doc, return values are not described
For the moment, my opinion is that ansible can't be as much convinient=20
as the current CLI, e.g. ovirt-shell -E "list vms", out of the box. Is=20
there a really reason to deprecate it?
Le 02/12/2016 =E0 14:12, Ondra Machacek a =E9crit :
Hello all,
I would like to kindly ask everyone who is Ansible or oVirt user for
testing of the new Ansible oVirt modules. For everyone who is familiar
with the Ansible and oVirt, this[1] describes the steps you need to do,
to setup oVirt modules library and start using those modules (Most of=20
those modules will be available in Ansible 2.3, some of them are=20
already in 2.2).
If you have any issue setting this up, please contact me, I will do the
best to help you.
If you have an issue, which you think is a bug, please open an issue
here[2]. Please note that Ansible is merging it's repositories, so sinc=
e
next week it will actually be stored here[3]. If you are missing
anything please open an issue as well, or just contact me, and I will
do fix it. You are also very welcome to sent PR with fixes.
For those who don't have testing environment which can test against,
I've created an Vagrant project which will deploy you the oVirt instanc=
e
using Ansible playbooks. You can find how to use it here[4].
The repository also contains few examples[5], so you don't have to
copy-paste them from the source.
Thanks all for reading this and any feedback,
Ondra
[1]
https://github.com/machacekondra/ovirt-tests/releases/tag/0.1
[2]
https://github.com/ansible/ansible-modules-extras/issues
[3]
https://github.com/ansible/ansible
[4]
https://github.com/machacekondra/ovirt-tests
[5]
https://github.com/machacekondra/ovirt-tests/tree/master/examples
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
--=20
Nathana=EBl Blanchet
Supervision r=E9seau
P=F4le Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 =09
T=E9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr
--------------F3B82204041E8AEDBE75F1BE
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
<html
<head
<meta content=3D"text/html;
charset=3Dwindows-1252"
http-equiv=3D"Content-Type"
</head
<body
text=3D"#000000" bgcolor=3D"#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 =A0=A0=A0=
=A0=A0=A0=A0
<br
</li
<li>with <br
=A0 - name: List vms<br
=A0=A0=A0
ovirt_vms_facts:<br
=A0=A0=A0=A0=A0 auth:
"{{ ovirt_auth }}"<br
=A0=A0=A0=A0=A0 pattern:
name=3Dtest_cloud<br
=A0 =A0 =A0 fetch_nested:
true<br
=A0=A0 =A0=A0
nested_attributes: name<br
=A0=A0=A0 register:
ovirt_vms<br
=A0=A0=A0=A0 <br
=A0 - shell: echo "{{ ovirt_vms.name }} >
vms_name" // doesn't
work</li
</ul
<ul
<li>=A0 - 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 snaphot.id 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=3D"moz-txt-link-freetext"
href=3D"http://ovirt-ansible-modules.r=
eadthedocs.io/en/latest/_modules/ovirt_snapshots_module.htm">http://ovirt=
-ansible-modules.readthedocs.io/en/latest/_modules/ovirt_snapshots_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=3D"moz-cite-prefix">Le
02/12/2016 =E0 14:12, Ondra Machace=
k a
=E9crit=A0:<br
</div
<blockquote
cite=3D"mid:3c316338-eb1d-b34c-f17c-663c5e53e4b0@redhat.com"
type=3D"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=3D"moz-txt-link-freetext"
href=3D"https://github.com/m=
achacekondra/ovirt-tests/releases/tag/0.1">https://github.com/mac...
ra/ovirt-tests/releases/tag/0.1</a
<br
[2] <a class=3D"moz-txt-link-freetext"
href=3D"https://github.com/a=
nsible/ansible-modules-extras/issues">https://github.com/ansible/...
modules-extras/issues</a
<br
[3] <a class=3D"moz-txt-link-freetext"
href=3D"https://github.com/a=
nsible/ansible">https://github.com/ansible/ansible</a
<br
[4]
<a class=3D"moz-txt-link-freetext"
href=3D"https://github.com/m=
achacekondra/ovirt-tests">https://github.com/machacekondra/ovirt-...
<br
[5]
<a class=3D"moz-txt-link-freetext"
href=3D"https://github.com/macha=
cekondra/ovirt-tests/tree/master/examples">https://github.com/mac...
ra/ovirt-tests/tree/master/examples</a
<br
_______________________________________________
<br
Users mailing list
<br
<a
class=3D"moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.or=
g">Users(a)ovirt.org</a
<br
<a class=3D"moz-txt-link-freetext"
href=3D"http://lists.ovirt.org/m=
ailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/us...
<br
</blockquote
<br
<pre class=3D"moz-signature"
cols=3D"72">--=20
Nathana=EBl Blanchet
Supervision r=E9seau
P=F4le Infrastrutures Informatiques
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5 =09
T=E9l. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class=3D"moz-txt-link-abbreviated"
href=3D"mailto:blanchet@abes.fr">bl=
anchet(a)abes.fr</a> </pre
</body
</html
--------------F3B82204041E8AEDBE75F1BE--