[ansible-project] Ansible integratión with Jenkins: hudson.AbortException: Ansible playbook execution failed

2018-08-23 Thread Josu Vilda
Hi, I have a problem with all playbooks executed from Plugin Ansible in Jenkins. Jenkins Group, say that this is an ansible runtime issue when running that playbook rather than a Jenkins issue. All jobs, finish with: PLAY RECAP

[ansible-project] Re: how to deploy vmware from template with ansible: changing the local user, expanding the disk and identifying when sysprep is completed.

2018-05-23 Thread Josu Vilda
requires GOVC https://github.com/vmware/govmomi/releases El miércoles, 23 de mayo de 2018, 15:52:40 (UTC+2), Josu Vilda escribió: > > After several weeks searching for information and getting it, I give you > the playbook. > Feel free to answer to improve it or show me the faul

[ansible-project] how to deploy vmware from template with ansible: changing the local user, expanding the disk and identifying when sysprep is completed.

2018-05-23 Thread Josu Vilda
After several weeks searching for information and getting it, I give you the playbook. Feel free to answer to improve it or show me the faults After several weeks searching for information and getting it, I give you the playbook. Feel free to answer to improve it or show me the faults --- -

Re: [ansible-project] Re: Help me please. How can I get the output of the command?

2018-05-16 Thread Josu Vilda
sible/issues for "vmware_vm_shell", https://github.com/ansible/ansible/ > issues/38320 looks like it might be related? > > On Wednesday, May 16, 2018 at 8:51:59 AM UTC-4, Josu Vilda wrote: >> >> I've tried that, but it gives me back the same information. >> <

[ansible-project] Re: Waiting for OS customization to complete

2018-05-16 Thread Josu Vilda
; El martes, 8 de mayo de 2018, 11:42:18 (UTC+2), Josu Vilda escribió: > > A question, > > We have templates that have been saved with sysprep. > As I can with Ansible, after deploying the templates, wait for OS > customization of sysprep to be completed. > > I have seen the

[ansible-project] Re: Help me please. How can I get the output of the command?

2018-05-16 Thread Josu Vilda
gt; > Remove that, and you should get some better results. > > On Monday, May 14, 2018 at 7:38:22 AM UTC-4, Josu Vilda wrote: >> >> Hi guys, >> I am launching this playbook but it does not give an error and it does >> not do what it is supposed to do. >> How can I d

Re: [ansible-project] Help me please. How can I get the output of the command?

2018-05-14 Thread Josu Vilda
28", "changed": true, "failed": false, "finished": 1, "msg": 1368, "uuid": "423c4b0f-3dd5-b3b3-6adc-23314cc4054c" } } El lunes, 14 de mayo de 2018, 14:10:02 (UTC+2), Josu Vilda escribió: >

Re: [ansible-project] Help me please. How can I get the output of the command?

2018-05-14 Thread Josu Vilda
The problem is that I do not know where to see the error that the command gives. El lunes, 14 de mayo de 2018, 13:49:17 (UTC+2), Josu Vilda escribió: > > This module, should launch the following command which join the vmware in > domain. > > Launch in host vmware 'c:\window

Re: [ansible-project] Help me please. How can I get the output of the command?

2018-05-14 Thread Josu Vilda
Before printing think about *environment* and *costs* 2018-05-14 13:40 GMT+02:00 Karl Auer <ka...@2pisoftware.com>: > It would help if you would describe what it is supposed to do... > > On Mon, May 14, 2018 at 9:38 PM, Josu Vilda <jrvi...@gmail.com> wrote: > >&

[ansible-project] Help me please. How can I get the output of the command?

2018-05-14 Thread Josu Vilda
Hi guys, I am launching this playbook but it does not give an error and it does not do what it is supposed to do. How can I debug the error? - name: Customize Domain vmware_vm_shell: hostname: '{{ VCENTER }}' username: '{{ DOMAIN_VCENTER }}\user' password:

[ansible-project] Waiting for OS customization to complete

2018-05-08 Thread Josu Vilda
A question, We have templates that have been saved with sysprep. As I can with Ansible, after deploying the templates, wait for OS customization of sysprep to be completed. I have seen the following article for powercli, but for Ansible ??

Re: [ansible-project] Problem with variables variables

2017-11-21 Thread Josu Vilda
Sincerely thanks. El martes, 21 de noviembre de 2017, 8:32:58 (UTC+1), Pshem Kowalczyk escribió: > > Hi, > > Try this: > > {{ vm_list.virtual_machines[vmname].uuid }} > > kind regards > Pshem > > > On Tue, 21 Nov 2017 at 04:11 Josu Vilda <jrv...@gmail

[ansible-project] Problem with variables variables

2017-11-20 Thread Josu Vilda
Hi, I have a problem with variables. this is correct: . - debug: msg: "{{ vm_list.virtual_machines.SRV1.uuid }}" but, i need: . register: vmname - debug: msg: "{{ vm_list.virtual_machines.{{ vmname }}.uuid }}" how do i have to do it? thx --

[ansible-project] Re: module connect_to_api from vmware has no attribute 'SSLContext'

2017-11-17 Thread Josu Vilda
, six El viernes, 17 de noviembre de 2017, 9:38:56 (UTC+1), Josu Vilda escribió: > > > Hello, > I'm having problems with module vmware_guest_snapshot. Any solution? > > > [root@ges1ansibledes ansible]# ansible --version > ansible 2.4.1.0 > config fil

[ansible-project] module connect_to_api from vmware has no attribute 'SSLContext'

2017-11-17 Thread Josu Vilda
Hello, I'm having problems with module vmware_guest_snapshot. Any solution? [root@ges1ansibledes ansible]# ansible --version ansible 2.4.1.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u '/usr/share/ansible/plugins/modules']

[ansible-project] Random var and lenguage reference

2017-10-25 Thread Josu Vilda
Hi, I would like to get a 3 digit random number, for example 001. I have come to get: tasks: - name: We assign a fixed random variable throughout the execution. set_fact: Random_Fix: "{{ 100 | random }}" run_once: yes ¿Which language uses "{{100 | random}}" or

[ansible-project] get the list of packages to update.

2017-09-07 Thread Josu Vilda
Hi all, I would like to automate a task to check the list of packages that need to be updated in my server farm with ansible. Is there any way to do it? I have seen that the yum module has the option to install the lastest, but not to check the packages and I have tried it from shell, shell

Re: [ansible-project] Ansible modifies PYTHONPATH which causes Python commands to fail

2017-07-24 Thread Josu Vilda
are telling > ansible to set it inside of a playbook or role. For instance, through the > environment: paramter to a task. > > -Toshio > > On Fri, Jul 21, 2017 at 12:35 AM, Josu Vilda <jrv...@gmail.com > > wrote: > >> Ansible appears to modify PYTHONPATH int

[ansible-project] Ansible modifies PYTHONPATH which causes Python commands to fail

2017-07-21 Thread Josu Vilda
Ansible appears to modify PYTHONPATH internally to vendored versions of some modules. This causes Python scripts executed within playbooks to potentially fail if there are module conflicts. []# ansible-playbook -e "*ansible_python_interpreter=/usr/bin/python*" -vvv test-Sonan3.yml Using

[ansible-project] Re: problem with pythonpath and ansible_python_interpreter

2017-07-20 Thread Josu Vilda
I think It should not change the execution path, right? El jueves, 20 de julio de 2017, 16:04:16 (UTC+2), Josu Vilda escribió: > > []# ansible-playbook -e "ansible_python_interpreter=/usr/bin/python" -vvv > test-Sonan3.yml > Using /etc/ansible/ansible.cfg as config file >

[ansible-project] problem with pythonpath and ansible_python_interpreter

2017-07-20 Thread Josu Vilda
[]# ansible-playbook -e "ansible_python_interpreter=/usr/bin/python" -vvv test-Sonan3.yml Using /etc/ansible/ansible.cfg as config file PLAYBOOK: test-Sonan3.yml ** 1 plays in test-Sonan3.yml PLAY [fac1apprep]

[ansible-project] Re: Error assigning variables with Conditionals

2017-06-30 Thread Josu Vilda
Ok, This would be the right way, right? --- - hosts: hostwin vars: # definimos variables de ejemplo - site: localhost tasks: - name: Definimos variables para Red Hat. set_fact: package_name: "httpd" when: ansible_os_family == "Red Hat"

[ansible-project] Re: Error assigning variables with Conditionals

2017-06-30 Thread Josu Vilda
ansible 2.2.1.0 Linux 2.6.32-504.el6.x86_64 #1 SMP Tue Sep 16 01:56:35 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux El viernes, 30 de junio de 2017, 14:24:13 (UTC+2), Josu Vilda escribió: When assigning variables under certain conditions, if there is no match, > the last condition is erroneou

[ansible-project] Error assigning variables with Conditionals

2017-06-30 Thread Josu Vilda
When assigning variables under certain conditions, if there is no match, the last condition is erroneously assigned. Ej: --- - hosts: hostwin vars: # Definimos el paquete a instalar según el sistema operativo. - package_name: httpd when: ansible_os_family == "Red Hat" -