title: ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path
body: <p>I trying to create a simple paybook with a common role.  Unfortunately I get stymied by ansible.   I have looked up and down the internet for solution for this error.</p>
  
  <p>The setup:
  I am running ansible 2.7.4 on Ubuntu 18.04</p>
  
  <p>directory structure:</p>
  
  <pre><code>~/Ansible_Do
   playbook.yml
   inventory  (hosts file) 
      /roles
        /common 
          /defaults
              main.yml   (other variables)
          /tasks
              main.yml
              richard_e.yml
          /vars
              vars_and_stuff.yml   (vault)
  </code></pre>
  
  <p>I have a simple playbook.yml </p>
  
  <pre><code>---
  # My playbook 1
  - hosts: test
  
  - name: Go to common role to run tasks.
    roles:
      - common
  
    tasks:
    - name: echo something
      shell: echo $(ip addr | grep inet)
  ...
  </code></pre>
  
  <p>I run this command to start the playbook:</p>
  
  <pre><code>~/Ansible_Do$ ansible-playbook -vv --vault-id @prompt -i ~/Ansible_Do/inventory playbook.yml
  </code></pre>
  
  <p>I enter the vault password continuing the playbook.</p>
  
  <p>The playbook starts pulls facts from the test group of servers.  Then reads the role and works to /roles/common.  That calls the /common/tasks/main.yml file.  This is where the error happens.</p>
  
  <p>The error appears to have been in '/home/~/Ansible_Do/roles/common/tasks/main.yml': line 8, column 3</p>
  
  <pre><code># Common/tasks file
  ---
  - name: Bring variable from vault
    include_vars:
      file: vars_and_stuff.yml
      name: My_password
  
  - name: Super Richard   &lt;======  Error 
    become: yes  
    vars:
      ansible_become_pass: "{{ My_password }}"
  
  - import_tasks: ./roles/common/tasks/ricahrd_e.yml
  ...
  </code></pre>
  
  <p>The ./roles/common/tasks/ricahrd_e.yml is a simple testing task.</p>
  
  <pre><code>---
  - name: say hi
    debug:
      msg: "Active server."
  ...
  </code></pre>
  
  <p>The error on "- name".  I have checked online and in the Ansible docs to see if there is a key I'm missing.  I found an example for include_vars in a /role/tasks  (<a href="https://gist.github.com/halberom/ef3ea6d6764e929923b0888740e05211" rel="nofollow noreferrer">https://gist.github.com/halberom/ef3ea6d6764e929923b0888740e05211</a>) showing proper syntax (I presume) in a simple role.  The code works as parts, but not together. </p>
  
  <p>I have reached what I can understand.  I feel that is error is utterly simple and I am missing something (forest for the trees).  </p>