I am receiving error.
can someone pls help me.
code
I think there is indentation issue on that line . Also do check the module supprttingbthis action is present.
give one space before - name:EC2 Facts
that module has just been introduced (or more accurate renamed) so it may be that your ansible is pre 2.9 and doesn’t know about it.
If so upgrade, or use the old module name (facts instead of info)
Thanks