ec2 module user-data?

Greetings.

I find myself wanting to pass some user_data to a call to the ec2
module, but I am unclear on the format I should be passing it.

Basically I want to pass it:

#cloud-config
disable_root: 0

When I call the ec2 module, what exactly do I give user_data= ?

I tried various formats of a var with the above in it with no luck at
all.

Any help appreciated. :wink:

kevin

Do like this:

user_data"#!/bin/bash\nsleep 10"

you can pass python style \n newlines.

Well, one of the things I tried was:

user_data="#cloud-config\ndisable_root: 0"

But that didn't seem to get to the instance either. ;(

kevin