[ansible-project] Re: win_disk_facts - get size and size remaining

2018-05-14 Thread Jeremie Levy
ve an input, it seems just a json gap i have and not ansible actually. Thanks! On Thursday, May 10, 2018 at 2:22:46 PM UTC+3, Jeremie Levy wrote: > > Hi > I'm trying to use win_disk_facts new module. > > I would like to get the size and remaining size of each > disk/partitio

[ansible-project] win_disk_facts - get size and size remaining

2018-05-10 Thread Jeremie Levy
Hi I'm trying to use win_disk_facts new module. I would like to get the size and remaining size of each disk/partition/volume. Is there a way to "discover" how many of them there are in a kind of loop ? - name: Get disk facts win_disk_facts: - name: Output first disk size debug:

[ansible-project] Ansible looping over register and multiple lists

2018-05-21 Thread Jeremie Levy
Hi I'm trying to do the following (in windows but it's not important): 1. Need to deploy N number of build agents to a server (according to the inventory nb_of_agents) - *iteration1* 2. Each agent should have a unique port starting from 8811 - *iteration2* 3. Check if the service

Re: [ansible-project] Ansible looping over register and multiple lists

2018-05-21 Thread Jeremie Levy
gle-space so that spacing is correct. > > On Mon, May 21, 2018, 15:55 Jeremie Levy <jer...@gmail.com > > wrote: > >> Hi >> I'm trying to do the following (in windows but it's not important): >> >> >>1. Need to deploy N number of build agents to

Re: [ansible-project] Ansible looping over register and multiple lists

2018-05-21 Thread Jeremie Levy
Thank you Jordan Actually, I also tried without the "." as you suggested and it didn't work Code: - name: output debug: var: qb_svc - name: output debug: var: qb_svc.results[item].exists with_sequence: count='{{nb_of_agents}}' Here is my output

Re: [ansible-project] Ansible looping over register and multiple lists

2018-05-22 Thread Jeremie Levy
It worked! Since i the first is 0, the last should be {{nb_of_agents -1 |int}} - name: output debug: var: qb_svc.results[item|int].exists with_sequence: start=0 end='{{nb_of_agents - 1 |int}}' Thanks On Tuesday, May 22, 2018 at 9:39:50 AM UTC+3, Jordan Borean

[ansible-project] Unable to connect to zabbix server

2018-04-29 Thread Jeremie Levy
Hi Trying to send request to my internal zabbix server and i get this error - if anyone knows how to fix it. # pip list |grep zabbix zabbix-api0.5.3 # ansible-playbook qb-agent-fw.yml --limit hasgqba025.DOMAIN - ansible-playbook 2.5.0

[ansible-project] Re: Unable to connect to zabbix server

2018-05-01 Thread Jeremie Levy
Anyone please ? On Sunday, April 29, 2018 at 3:27:40 PM UTC+3, Jeremie Levy wrote: > > Hi > Trying to send request to my internal zabbix server and i get this error - > if anyone knows how to fix it. > > # pip list |grep zabbix > zabbix-api0.

[ansible-project] Kerberos authentication failed (while following instructions.)

2018-01-07 Thread Jeremie Levy
I'm trying to connect to my first windows client after fresh ansible install win_ping from ansible contoller to windows 2016 ANSIBLE VERSION ansible --version ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path =

[ansible-project] Re: Kerberos authentication failed (while following instructions.)

2018-01-07 Thread Jeremie Levy
Hello Jordan, Yes, it was me, I didn't know I should post here (searching for help lead me to the github page multiple times) So i did as you suggested (have to say i tried it before) but i have another error, which confused me even more: ansible windows -m win_ping - ansible 2.4.2.0

[ansible-project] Re: Kerberos authentication failed (while following instructions.)

2018-01-09 Thread Jeremie Levy
Hi I've reinstall it on Ubuntu 16.04 and the install was much more straight forward. And it works now! Are you aware of any issue with ubuntu 14.04 or it may be my company build? Thank you! On Sunday, January 7, 2018 at 4:18:59 PM UTC+2, Jeremie Levy wrote: > > I'm trying to connect to my

[ansible-project] Re: Kerberos authentication failed (while following instructions.)

2018-01-08 Thread Jeremie Levy
Hello Jordan So I cleanup my environment, and restart from the begininng. When installing everything according to http://docs.ansible.com/ansible/latest/intro_windows.html (had to install setuptools before cryptography could be installed which is needed by pywinrm) After installing i get this

[ansible-project] [Windows] Install visual studio

2018-01-25 Thread Jeremie Levy
Hi It seems i need to wait a bit after the Visual studio installation. It stated as failed because it couldn't remove the temporary install file (web install file) - VS was installed ! I'm using win_package and i'm not interested in using the raw module since i need the win_package

Re: [ansible-project] Re: [Windows] Install visual studio

2018-01-28 Thread Jeremie Levy
To avoid this issue and since my user is already admin on the server, i've just download the file first instead of installing over http url. Thanks! On Sunday, January 28, 2018 at 6:59:33 PM UTC+2, Varun Chopra wrote: > > Yes, and? -- You received this message because you are subscribed to the

[ansible-project] WINRM Connection always ends up with "STDERR An error occurred while creating the pipeline"

2018-01-28 Thread Jeremie Levy
Hi Any task i run is followed by this WINRM error I am not sure it's an error since the task is done successfully, does someone knows about this? TASK [Create KIT folder if missing]

[ansible-project] Re: WINRM Connection always ends up with "STDERR An error occurred while creating the pipeline"

2018-01-28 Thread Jeremie Levy
Thank you Jordan, really appreciate. I am still not sure it doesn't affect module execution, i have some issues executing win_package. Maybe not related. On Monday, January 29, 2018 at 9:33:23 AM UTC+2, Jordan Borean wrote: > > This is a known issue, technically an error did occur but it does

Re: [ansible-project] Re: [Windows] Install visual studio

2018-01-28 Thread Jeremie Levy
run as local administrator). Might be > worth trying that. > I suspect running with become might fix your problem as clearly its upset > about having access to C:\\Users\\ansible\\r4muzag1.gdd > > Hope this is some help, > > Jon > > On Thursday, January 25, 2018 at 10:25:

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-05 Thread Jeremie Levy
Thanks Jordan So i have this option activated since the beginning but the double hop is not resolved. What extra configuration is needed here? WINRM CLOSE SHELL: 22A19915-A7B0-4AFB-B840-263A9980023A WINRM RESULT u'' WINRM STDOUT WINRM

Re: [ansible-project] Re: WINRM Connection always ends up with "STDERR An error occurred while creating the pipeline"

2018-01-29 Thread Jeremie Levy
You were right, my issue was in my code. I've "patched" my ansible with the github version and i don't have the error anymore. Thanks a lot! On Mon, Jan 29, 2018 at 10:11 AM, Jordan Borean wrote: > It wouldn't be, those issue seem to be unrelated. In most cases a fatal >

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-03 Thread Jeremie Levy
Thank you Jordan, So i'm using Kerberos and i'm missing the "with delegation" part. Can you point me to how and where to configure this option ? Thank you! On Wednesday, January 31, 2018 at 12:05:41 AM UTC+2, Jordan Borean wrote: > > TLDR: for Windows to authenticate with another server

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-06 Thread Jeremie Levy
Win_package is working fine locally. I'm downloading all the SW i need and install them locally win_stat: TASK [Check Visual studio Code file]

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-06 Thread Jeremie Levy
, "failed": true, "msg": "Exception calling \"RunAsUser\" with \"7\" argument(s): \"LogonUser failed (The user name or password is incorrect, Win32ErrorCode 1326)\"" } On Tuesday, February 6, 2018 at 12:45:31 PM UTC+2, Jeremi

[ansible-project] Re: requests-credssp and credentials encryprion at first hop.

2018-02-06 Thread Jeremie Levy
become_method: runas become_user: ansible@domain Thank you Jordan! On Tuesday, February 6, 2018 at 2:11:30 PM UTC+2, Jeremie Levy wrote: > > Also Tried > --- > - hosts: windows > gather_facts: no > vars: > - username: ansible@DOMAIN > - password: password > become_meth

[ansible-project] Windows - become_method runas - password definition

2018-02-19 Thread Jeremie Levy
Hello I am using successfully ansible in my windows environment with Kerberos. I am still having trouble if i want to execute a task as another user than my ansible user. For example, i want to execute specific task as build user to make sure it's home dir is present - if not i guess my command

[ansible-project] Re: Windows - become_method runas - password definition

2018-02-19 Thread Jeremie Levy
h: c:\Users\bld_usr > > Hope this helps, > > Jon > > > > On Monday, February 19, 2018 at 9:40:07 AM UTC, Jeremie Levy wrote: >> >> Hello >> I am using successfully ansible in my windows environment with Kerberos. >> I am still having trouble if i want to execute a t

[ansible-project] Re: unable to ping windows machine using ansible

2018-02-18 Thread Jeremie Levy
Your config should look like this: ansible_user: username #password goes here when you don't want to use -k option. ansible_password: password ansible_port: 5986 ansible_connection: winrm ansible_winrm_transport: kerberos ansible_winrm_scheme: https ansible_winrm_server_cert_validation: ignore

Re: [ansible-project] Re: [Ansible windows] "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Generic error (see e-text)', -176532

2018-08-28 Thread Jeremie Levy
Hello Jordan I moved from https to http I removed the des kerberos options: # default_tgs_enctypes = des-cbc-crc arcfour-hmac-md5 default_tgs_enctypes = arcfour-hmac-md5 # default_tkt_enctypes = arcfour-hmac-md5 des-cbc-crc default_tkt_enctypes = arcfour-hmac-md5 # preferred_preauth_types =

[ansible-project] [Ansible windows] "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Generic error (see e-text)', -1765328324)

2018-08-27 Thread Jeremie Levy
Hi In my company we have a forest with multiple domains, EUR / USA ... I can work without any issue with my domain (EUR) with a EUR user Now i'm trying to access a USA server with and got the following failure: # ansible-playbook agent.yml --limit tsthost67.usa.company.com - ansible-playbook

[ansible-project] Re: [Ansible windows] "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('Generic error (see e-text)', -1765328

2018-08-27 Thread Jeremie Levy
, my first choice would be to use the same user eventually. Thanks Jordan / Jon ? :) On Monday, August 27, 2018 at 9:51:54 AM UTC+3, Jeremie Levy wrote: > > Hi > In my company we have a forest with multiple domains, EUR / USA ... > I can work without any issue with my domain (EUR) w

[ansible-project] Re: win_shell failing since Ansible 2.5 (?)

2018-03-27 Thread Jeremie Levy
Thanks Jordan! I am able to bypass this issue by checking the directory with win_stat and use a register as a condition for the win_shell. I noticed the handlers are now working which is great :) Thanks again! On Tuesday, March 27, 2018 at 2:50:05 AM UTC+3, Jordan Borean wrote: > > Sidenote:

[ansible-project] win_shell failing since Ansible 2.5 (?)

2018-03-26 Thread Jeremie Levy
My playbook is broken since i upgraded to v2.5 Here is the simplest example i have: The code from my playbook: - name: Install Winzip Package win_shell: 'cmd /C C:\Users\ansible\Downloads\install_winzip.cmd' args: creates: 'C:\Program Files\WinZip\WINZIP64.EXE' Here is the output: TASK

Re: [ansible-project] win_service_info register

2021-01-24 Thread Jeremie Levy
Hi Jordan, can you please assist here ? On Sun, Jan 24, 2021 at 3:08 PM jer...@gmail.com wrote: > Hi > Trying to use win_service_info with a register. > While the register is filled with multiple entries, i want to make sure > all these are started. > How to write the loop ? > > - name: Find

Re: [ansible-project] win_service_info register

2021-01-25 Thread Jeremie Levy
Thank you! I wonder why i didn't try it... On Sun, Jan 24, 2021 at 9:28 PM jbor...@gmail.com wrote: > Just loop the services entry and then your item is item.name. > > - win_service: > name: '{{ item.name }}' > state: started > with_items: '{{ service.services }}' > > This works

Re: [ansible-project] Encrypted SSH Key leads to Invalid format

2022-10-02 Thread Jeremie Levy
Yes it works, and it works unencrypted. On Sun, 2 Oct 2022 at 21:02 Evan Hisey wrote: > Can you confirm the decrypted key is valid by direct ssh? Hard to tell > for sure but that looks like the target host is rejecting the key format. > Not all key formats are accepted by all targets. I have