Ansible Playbook structure for my first playbook with AWS and python

22 views
Skip to first unread message

Sakthivel Subramanian

unread,
Mar 29, 2015, 2:32:19 AM3/29/15
to ansible...@googlegroups.com
Hi,

I am new to Ansible Playbook. I need helps on structuring my playbook, here is my requirement.

-> Create new instance in AWS using ansible playbook
      (User needs to provide ami ID, security group, tag name etc at run time..)
-> Run custom script to set properties on the instances which created on above step.
     (Should be python Script which ssh into above instance and set some properties)

I have Ansible playbook with hardcoded values of ami ID, security group etc...

I have create python script and it works fine when I ran it individually.

Now I need to integrate both this playbook and python script as well as needs to change the values into user input. Please suggest me best way to do this.. and some useful tips..

Thanks,
Sakthi


Reply all
Reply to author
Forward
0 new messages