# Could not able to run Multiple Plays.

**URL:** <https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660>\
**Category:** Ansible Project\
**Created:** [May 30, 2018, 5:05am UTC](https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660 "2018-05-30T05:05:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gowtham\_Nakulan](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Post date:** [May 30, 2018, 5:05am UTC](https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660/1 "2018-05-30T05:05:23Z")

</div>

Hi Team,

I am able to execute a single play in the play book.

But i am not able to execute the second play in the playbook.

Getting the Below error:-

ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in ‘/opt/work/ansible/playbooks/gowtham/vm\_deploy.yml’: line 55, column 5, but may  
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

tasks:

- name: Deploying Second VM  
^ here

Source Code here

---

<div class="post-metadata">

**Author:** ![Tim1](https://avatars.discourse-cdn.com/v4/letter/t/b782af/32.png) [@Tim1](https://forum.ansible.com/u/Tim1)\
**Post date:** [May 30, 2018, 5:23am UTC](https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660/2 "2018-05-30T05:23:47Z")

</div>

this is happening because you have an extra dash

\<snip\>

&nbsp;&nbsp;tasks:  
&nbsp;&nbsp;- name: Deploying Second VM  
&nbsp;&nbsp;- vmware\_guest:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostname: "{{vspheredetails.hostname}}"

\</snip\>

Make it look like this

&nbsp;&nbsp;tasks:  
&nbsp;&nbsp;- name: Deploying Second VM  
&nbsp;&nbsp;&nbsp;&nbsp;vmware\_guest:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostname: "{{vspheredetails.hostname}}"

The name names the task. The vmware\_guest is the module used in the task

-tim

---

<div class="post-metadata">

**Author:** ![Gowtham\_Nakulan](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@Gowtham\_Nakulan](https://forum.ansible.com/u/Gowtham_Nakulan)\
**Post date:** [May 30, 2018, 6:08am UTC](https://forum.ansible.com/t/could-not-able-to-run-multiple-plays/27660/3 "2018-05-30T06:08:55Z")

</div>

Thank you Let me check it.
