# No action Detected Error for localaction module

**URL:** <https://forum.ansible.com/t/no-action-detected-error-for-localaction-module/31162>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [August 29, 2019, 8:18am UTC](https://forum.ansible.com/t/no-action-detected-error-for-localaction-module/31162 "2019-08-29T08:18:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [August 29, 2019, 8:18am UTC](https://forum.ansible.com/t/no-action-detected-error-for-localaction-module/31162/1 "2019-08-29T08:18:57Z")

</div>

> I'm getting the below error for my playbook.
> 
> &nbsp;&nbsp;&nbsp;&nbsp;ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.  
> &nbsp;&nbsp;&nbsp;&nbsp;The error appears to be in '/app/test1.yml': line 12, column 7, but may  
> &nbsp;&nbsp;&nbsp;&nbsp;be elsewhere in the file depending on the exact syntax problem.  
> &nbsp;&nbsp;&nbsp;&nbsp;The offending line appears to be:  
> &nbsp;&nbsp;&nbsp;&nbsp; tasks:  
> &nbsp;&nbsp;&nbsp;&nbsp; - name: "Logging the deployments"  
> &nbsp;&nbsp;&nbsp;&nbsp; ^ here
> 
> Below is my playbook which I thought should work.
> 
> \>  
> ---  
> -name:"Find the details here "  
> hosts:localhost
> 
> tasks:
> 
> ```
> \-name:&quot;Logging the deployments&quot;
> localaction:copy content=&quot;HELOOOOO&quot;dest=&quot;\{\{ playbook\_dir \}\}/vars/newfile\.yaml&quot;
> with\_fileglob:
> \-&quot;\{\{ playbook\_dir \}\}/tmpfiles/\*&quot;
> 
> ```
> 
> \>
> 
> Is localaction along with copy not considered a module ?
> 
> How can I get this to work? Please help me understand.

The keyword is local\_action instead of localaction (see  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_delegation.html](https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html)). Also your indentation looks suspicious.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
