Re: [ansible-project] win_copy azure ansible module not working

2019-04-22 Thread Jordan Borean
The first thing you want to do is create an inventory with a Windows group that contains the generic WinRM connection vars like; [windows] [windows:vars] ansible_connection=winrm ansible_port=5986 ansible_winrm_transport=ntlm ansible_winrm_server_cert_validation=ignore This group is empty as

Re: [ansible-project] win_copy azure ansible module not working

2019-04-22 Thread dan
You could upload all these files (playbook, inventory, sample file to copy, etc) to a temporary GitHub.com or GitLab.com repository for us to look at it. The "unable to parse inventory" probably means formatting or other weirdness, not a bug or problem with Ansible. On Monday, April 22, 2019

Re: [ansible-project] win_copy azure ansible module not working

2019-04-22 Thread gottumukkala srija
Hi, I tried changing the format of the inventory but still the same issue. Not sure what else to be done. I mentioned all the necessary modules for windows connection. Do you anything to suggest here? Thanks in Advance. On Thursday, April 18, 2019 at 6:41:08 PM UTC+5:30, d...@linder.org

Re: [ansible-project] win_copy azure ansible module not working

2019-04-18 Thread dan
On Thursday, April 18, 2019 at 4:19:15 AM UTC, gottumukkala srija wrote: > > [WARNING]: Unable to parse /home/f2/.ansible/inventory as an inventory > source > > [WARNING]: No inventory was parsed, only implicit localhost is available > > [WARNING]: provided hosts list is empty, only localhost

Re: [ansible-project] win_copy azure ansible module not working

2019-04-17 Thread gottumukkala srija
Hi, We are using the mentioned connection variables and below are the inventory file details: [windows] remote_host [windows:vars] ansible_user: admin ansible_password: admin ansible_connection: winrm ansible_winrm_transport: basic ansible_port: 5986

Re: [ansible-project] win_copy azure ansible module not working

2019-04-17 Thread dan
I don't do much Ansible work on Windows systems, but the message "Failed to connect to host via ssh" seems to imply that the connection type for that remote host isn't setup for Windows. At minimum you'll need to setup these connection variables (connection type, user, and password) as shown

Re: [ansible-project] win_copy azure ansible module not working

2019-04-16 Thread gottumukkala srija
Hi, We are running the playbook via azure cloud shell "bash" editor. The source file and the inventory are placed in the same folder and while running playbook we are invoking the playbook and below is the command: ansible-playbook -i inventory wincopy.yml We are getting the below error:

Re: [ansible-project] win_copy azure ansible module not working

2019-04-15 Thread dan
Please clarify a couple questions: 1. You're running the ansible command from a Linux (RedHat, Ubuntu, CentOS, Debian) system, correct? 2. The playbook you're using has these tasks: - name: Copy script from local to remote server win_copy: src: files dest: C:\

Re: [ansible-project] win_copy azure ansible module not working

2019-04-14 Thread gottumukkala srija
I changed localhost to remote_host as suggested, but while running the playbook getting error as "no hosts matched". Is there any possible way that we can get on call to discuss furtherPlease suggest..!!! On Friday, April 12, 2019 at 4:02:12 PM UTC+5:30, CORLEONE## wrote: > > If u want to

Re: [ansible-project] win_copy azure ansible module not working

2019-04-12 Thread CORLEONE##
If u want to copy from local to remote u should mention -host: remote_hosti think u r using localhost On Fri, 12 Apr 2019, 14:36 gottumukkala srija, wrote: > localhost is windows. And we are using win_copy for copying the file. Any > alternative for this? > > On Friday, April 12, 2019 at

Re: [ansible-project] win_copy azure ansible module not working

2019-04-12 Thread gottumukkala srija
localhost is windows. And we are using win_copy for copying the file. Any alternative for this? On Friday, April 12, 2019 at 2:27:27 PM UTC+5:30, CORLEONE## wrote: > > its a module failure...is the localhost linux or windows.???...win_copy > works for windows ...for rest use copy module > > On

Re: [ansible-project] win_copy azure ansible module not working

2019-04-12 Thread CORLEONE##
its a module failure...is the localhost linux or windows.???...win_copy works for windows ...for rest use copy module On Fri, 12 Apr 2019, 14:02 gottumukkala srija, wrote: > Hi Jordan, > > Can you please describe it briefly? You want us to create a new VM and > then point that IP to add_host? >

Re: [ansible-project] win_copy azure ansible module not working

2019-04-12 Thread gottumukkala srija
Hi Jordan, Can you please describe it briefly? You want us to create a new VM and then point that IP to add_host? On Thursday, April 11, 2019 at 12:30:28 PM UTC+5:30, Jordan Borean wrote: > > If your inventory is targeting localhost then that means it's trying to > run a Windows module on the

Re: [ansible-project] win_copy azure ansible module not working

2019-04-11 Thread Jordan Borean
If your inventory is targeting localhost then that means it's trying to run a Windows module on the Ansible controller which won't work. You cna use the azure_rm_virtualmachine module to spin up a host but then you will have to use something like 'add_host' [1] to add the host for the current

Re: [ansible-project] win_copy azure ansible module not working

2019-04-10 Thread gottumukkala srija
Please suggest any other alternative... On Wednesday, April 10, 2019 at 3:28:03 PM UTC+5:30, gottumukkala srija wrote: > > Hi, > We have tried changing the destination to C://Toolsinstall/. > But the problem here is win_copy , which is not allowing to copy the file > to remote server. > > On

Re: [ansible-project] win_copy azure ansible module not working

2019-04-10 Thread gottumukkala srija
Hi, We have tried changing the destination to C://Toolsinstall/. But the problem here is win_copy , which is not allowing to copy the file to remote server. On Wednesday, April 10, 2019 at 10:56:21 AM UTC+5:30, vinoth kumar wrote: > > Hi , > Error says in dest. Can you try to put in any other

Re: [ansible-project] win_copy azure ansible module not working

2019-04-09 Thread vinoth kumar
Hi , Error says in dest. Can you try to put in any other destination with absolute path ? On Tue, 9 Apr 2019 at 3:49 PM, gottumukkala srija wrote: > Hi Team, > > We are trying to automate the installation of tools in azure using > ansible. VM spin up is successful and we are trying to invoke

[ansible-project] win_copy azure ansible module not working

2019-04-09 Thread gottumukkala srija
Hi Team, We are trying to automate the installation of tools in azure using ansible. VM spin up is successful and we are trying to invoke the powershell script(code for tools installation) so the files has to be installed on the server. Tried number of ways using win_copy command for