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:
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
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
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
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
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 |
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
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:
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
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,
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:*
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
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?
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
14 matches
Mail list logo