Re: [ansible-project] Ansible Win_command

2019-07-04 Thread sindhu shree
Thanks for the info. I look into it. On Friday, June 28, 2019 at 12:18:07 AM UTC+5:30, Angel Rengifo Cancino wrote: > > May the expect module be useful for you? > > On Wed, Jun 26, 2019 at 11:32 PM sindhu shree > wrote: > >> Hi All, >> I need help in execu

Re: [ansible-project] Ansible Win_command

2019-07-04 Thread sindhu shree
Jordan, Thanks for the detailed description. Actually am working on stopping services which has dependencies just like service A dependent on Service B, am having issue in this scenario. Can you please give some info on stopping dependencies as well? On Friday, June 28, 2019 at 1:48:36 AM

Re: [ansible-project] Ansible Win_command

2019-07-04 Thread sindhu shree
Thanks for the reply. I look into it. >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this

[ansible-project] Ansible Win_command

2019-06-26 Thread sindhu shree
Hi All, I need help in executing batch file which has some prompts. Am using following lines of script - name: run an executable with custom working dir win_command: pisrvstop.bat /argument1 "/argument 2 with space" args: chdir: F:\Program Files\PI\adm

[ansible-project] Ansible Kerberos Cannot contact any KDC for realm

2019-01-25 Thread sindhu shree
Can anyone guide me why am getting this error ? UNREACHABLE! => { "changed": false, "msg": "Kerberos auth failure: kinit: Cannot contact any KDC for realm 'AD.DOMAIN.COM' while getting initial credentials", "unreachable": true } My inventory and krb5.conf files looks like this

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
After seeing your suggestion, tried with Kerberos and NTLM This is what i see 10.67.104.45 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017\r\ndebug1: Reading configuration data

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
How to connect windows client without using user name and password, in linux we can have certificate for password less authentication. How can i achieve the same with windows client? On Saturday, January 19, 2019 at 4:12:43 AM UTC+5:30, Jordan Borean wrote: > > Setting the execution policy or

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
not match the hostname. - show quoted text - On Friday, January 18, 2019 at 7:46:17 PM UTC+5:30, Rahamath Ulla wrote: > > There is a PS script which will set required winrm settings (auth to > basic). You need to run that script on windows host. > > On Fri 18 Jan, 2019, 20:47 sindhu shree

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
Am trying for https. Power shell basic script as follows $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1; $file = "$env:temp\ConfigureRemotingForAnsible.ps1" $username = "username" $password = "password " Set-ExecutionPolicy

Re: [ansible-project] Ansible to windows client connection

2019-01-22 Thread sindhu shree
e is a PS script which will set required winrm settings (auth to > basic). You need to run that script on windows host. > > On Fri 18 Jan, 2019, 20:47 sindhu shree wrote: > >> Execution policy has set to Unrestricted (Using Set-ExecutionPolicy >> -ExecutionPolicy Unr

Re: [ansible-project] Ansible to windows client connection

2019-01-18 Thread sindhu shree
ail - dines...@gmail.com > > > On Fri, Jan 18, 2019, 6:11 PM sindhu shree wrote: > >> which option should i enable? winrm is allowed and no such specific >> options for linux. >> >> >> >> On Friday, January 18, 2019 at 6:04:35 PM UTC+5:30, Dinesh Sing

Re: [ansible-project] Ansible to windows client connection

2019-01-18 Thread sindhu shree
t; Dinesh Singh > Email - dines...@gmail.com > > > On Fri, Jan 18, 2019, 5:59 PM sindhu shree wrote: > >> Hi. >> Am facing some authentication issues when i run ansible all -m win_ping. >> Response - 10.67.104.45 | UNREACHABLE! => { >> "changed

Re: [ansible-project] Ansible to windows client connection

2019-01-18 Thread sindhu shree
mmunicate. > > With Regards, > Dinesh Singh > Email - dines...@gmail.com > > On Fri, Jan 18, 2019, 5:59 PM sindhu shree wrote: > >> Hi. >> Am facing some authentication issues when i run ansible all -m win_ping. >> Response - 10.67.104.45 | UNREACHABLE! =&

[ansible-project] Ansible to windows client connection

2019-01-18 Thread sindhu shree
Hi. Am facing some authentication issues when i run ansible all -m win_ping. Response - 10.67.104.45 | UNREACHABLE! => { "changed": false, "msg": "basic: the specified credentials were rejected by the server", "unreachable": true } The user which am trying to connect is