Okay, got it...

I added the following line to the playbook I posted above (within the ec2 
block):

    user_data: "{{ my_user_data }}"

After that I created this block in my variable file:

hostname: "test1234"
fqdn: "test1234.example.local"
my_user_data: |
               #cloud-config
               hostname: "{{ hostname }}"
               fqdn: "{{ fqdn }}"


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6bf30c97-dd38-4eea-b781-0aa9179a1540%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to