# ERROR! no action detected in task

**URL:** <https://forum.ansible.com/t/error-no-action-detected-in-task/31779>\
**Category:** Ansible Project\
**Created:** [December 6, 2019, 1:51pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779 "2019-12-06T13:51:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![S.Mahesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@S.Mahesh\_Kumar](https://forum.ansible.com/u/S.Mahesh_Kumar)\
**Post date:** [December 6, 2019, 1:51pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779/1 "2019-12-06T13:51:58Z")

</div>

I am receiving error.  
can someone pls help me.  
code

---

<div class="post-metadata">

**Author:** ![The\_Vandyy\_Vines](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@The\_Vandyy\_Vines](https://forum.ansible.com/u/The_Vandyy_Vines)\
**Post date:** [December 6, 2019, 1:54pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779/2 "2019-12-06T13:54:42Z")

</div>

I think there is indentation issue on that line . Also do check the module supprttingbthis action is present.

---

<div class="post-metadata">

**Author:** ![P\_Varsha](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@P\_Varsha](https://forum.ansible.com/u/P_Varsha)\
**Post date:** [December 6, 2019, 2:17pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779/3 "2019-12-06T14:17:03Z")

</div>

give one space before - name:EC2 Facts

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [December 6, 2019, 5:13pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779/4 "2019-12-06T17:13:31Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![S.Mahesh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@S.Mahesh\_Kumar](https://forum.ansible.com/u/S.Mahesh_Kumar)\
**Post date:** [December 6, 2019, 5:36pm UTC](https://forum.ansible.com/t/error-no-action-detected-in-task/31779/5 "2019-12-06T17:36:55Z")

</div>

Thanks
