i am getting error with below yaml file.could you please help me
-name: launching AWS instance using Ansible EC2
It looks like that you might have an indentation error in the YAML file.
Can you share the whole YAML so I could advise you further?
Alternatively, you could use this tool to check the syntax of your YAML file ...