Hi Fred,
In your first example, you* did not quote your variables in the play*:
tasks:
- name: create instance
ec2: key_name={{ keypair }} image={{ image }} instance_type={{
instance_type }} vpc_subnet_id={{ subnet }} user_data='{"shortname":"{{
hostname }}", "hostname":"{{ hostname
That snippet of code you posted isn't a complete playbook. You need at
least:
- hosts: myhost
tasks:
- local_action: ...
On Tue, Feb 18, 2014 at 10:00 AM, Frédéric Badel wrote:
> Hi Michael,
>
> Thanks for your help.
> ... I am not sure to understand though ...
>
> I tried to copy the ex
Hi Michael,
Thanks for your help.
... I am not sure to understand though ...
I tried to copy the example given on doc.ansible.com:
local_action:
module: ec2
keypair: mykey
group: webserver
instance_type: m1.large
image: ami-6e649707
wait: yes
wait_timeout: 500
volu
When using the ec2 module it's almost always easier to use the complex
arguments style as shown in the examples.
If you are going to pass typed data to modules (like "volumes"), that is
going to be required.
On Tue, Feb 18, 2014 at 7:57 AM, Fred Badel wrote:
> Hello,
>
> I am trying to creat
Hello,
I am trying to create an ec2 instance with specific volumes requirement ...
but I keep getting a "this module requires key=value arguments" error
message.
Looking closer at ansible output (see below), it looks like the
single-quoting of the volumes parameter is a little bit "fancy"...
A