[ansible-project] how to wait for a windows machine to come up after rebooting?

2016-04-15 Thread Sharwari Phadnis
I am trying to reboot a windows machine and I want to wait for it come up. I tried the following playbook: --- - hosts: windows tasks: - name: Reboot windows raw: shutdown /r /f - name: ping windows machine until it comes up action: win_ping register:

[ansible-project] How to create a service on a windows 10 machine?

2016-04-08 Thread Sharwari Phadnis
I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I'm using *sc create* *type=kernel binpath=c:\path * command. Ansible playbook for creating a service: - hosts: windows tasks: - name: Create temp

[ansible-project] How to create a service on a windows 10 machine?

2016-04-08 Thread Sharwari Phadnis
I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I'm using *sc create* *type=kernel binpath=c:\path * command. Ansible playbook for creating a service: - hosts: windows tasks: - name: Create temp

[ansible-project] how to create a service on a windows 10 machine?

2016-04-08 Thread Sharwari Phadnis
I am trying to create a service of type kernel on a remote windows 10 machine from a linux ansible controller machine. To create a service I'm using *sc create* *type=kernel binpath=c:\path * command. Ansible playbook for creating a service: - hosts: windows tasks: - name: Create temp

Re: [ansible-project] Send payload using uri module

2015-10-20 Thread Sharwari Phadnis
Yes, I tried that. It worked. Thanks. On 21-Oct-2015 9:48 am, "Igor Cicimov" wrote: > Well first of all if you check the module docs > http://docs.ansible.com/ansible/uri_module.html you can see that > body_format was introduced in ansible 2.0 so you can't use it

[ansible-project] Can't send JSON code using uri module

2015-10-18 Thread Sharwari Phadnis
I am trying to send a JSON payload using uri module through body parameter. The variables {{ network-name }} and and {{ IP1 }} are imported from config.yml. I have defined body in vars. The json code which I am trying to print is getting created properly using (debug: var={{ body |

[ansible-project] Re: Variable substitution in uri module

2015-10-15 Thread Sharwari Phadnis
HI, I am facing the same problem. I went through the link which you've posted but couldn't find the exact solution. Could you please post the solution which you've tried? On Saturday, October 3, 2015 at 1:15:51 AM UTC+5:30, mic...@networktocode.com wrote: > > I solved the problem after a lot

[ansible-project] Concatenate strings and variables.

2015-10-15 Thread Sharwari Phadnis
I want to concat strings and variables imported from a yml file. For example: --- - hosts: localhost vars_files: - config.yml tasks: - uri: url: "https://url/to/dest/server; method: POST body: '{"key1":"value1","key2":"value2" }' user:

[ansible-project] Re: Variable substitution in uri module

2015-10-15 Thread Sharwari Phadnis
s > wait_timeout=600 > region="{{ vpc_region }}" > aws_access_key="{{ aws_access_key }}" > aws_secret_key="{{ aws_secret_key }}" > register: new_instance > when: environment_instance is not defined > > On Thur

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
gister: payloadop - name: Print command output action: command echo item with_items: payloadop.stdout On Wednesday, October 14, 2015 at 4:35:41 PM UTC+5:30, Sharwari Phadnis wrote: > > So, to send payload body parameter could be used? > > On Wednesday, October 14,

[ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
I am trying to *send a payload(in JSON)* to a destination mentioned in the URL. For this purpose I am using* uri module and POST method*. How can I send it using uri module? I am using ansible* version 1.9.1* and when I tried to use *body parameter* for uri module it shows the following error:*

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
your task here :). > > David Karban > Linux server specialist/Specialista na správu linuxových serverů > www.karban.eu > > 2015-10-14 12:59 GMT+02:00 Sharwari Phadnis <sharwar...@gmail.com > >: > >> I am trying to *send a payload(in JSON)* to a destination mentioned in

Re: [ansible-project] Send payload using uri module

2015-10-14 Thread Sharwari Phadnis
g, > it will help to understand, thanks. > > David Karban > Linux server specialist/Specialista na správu linuxových serverů > www.karban.eu > > 2015-10-14 13:05 GMT+02:00 Sharwari Phadnis <sharwar...@gmail.com > >: > >> So, to send payload body parameter could be used?

[ansible-project] shell command not getting executed on the remote node

2015-09-15 Thread Sharwari Phadnis
I want to add a linux bridge on a remote node having ubuntu 14.04 version. I wrote a playbook to do so, it is as following: * hosts: ans# user: sudo tasks:- name: send and execute shell: /sbin/brctl addbr br11*I've used shell command to execute brctl on the remote node