title: calling an ansible playbook with tag and parameter
body: <p>I am trying to call an ansible v2.1 playbook (notifications.yml) from another playbook using an include statement.  I would like to specify a tag as well as pass a parameter to the called playbook (from within the playbook which has the included playbook).  I was able to get this to work without the tag but cannot seem to get it to work with the tag.  Is this even possible (without command line parameters) and if so, what is the syntax/correct way of achieving this:</p>
  
  <p><strong>main.yml</strong></p>
  
  <pre><code>- include: playbooks/notifications.yml
    tags: ['slack']
    slack_msg: "test"
  </code></pre>
  
  <p><strong>notifications.yml</strong></p>
  
  <pre><code>---
  - connection: local
    hosts: 127.0.0.1
    tasks:
      - name: Send notification message via Slack
        tags:
          - slack
        local_action:
          module: slack
          domain: changed.slack.com
          token: "{{ slack_token }}"
          msg: "{{ slack_msg }}"
          channel: "{{ slack_channel }}"
          username: "{{ slack_username }}"
  
      - name: Send notification message via Email
        tags:
          - email
        local_action:
          module: mail
          host: "smtp.gmail.com" 
          port: "587"   
          username: 'changed@changed.com'   
          password: 'changed'  
          to: "changed &lt;changed@changed.com&gt;"  
          subject: 'Ansible-report'
          body: 'System {{ ansible_hostname }} has been successfully provisioned. User {{ ansible_user_id }}'
  </code></pre>