<p dir="auto">While running this, the tag is not working.</p>
<p dir="auto">It will run the whole playbook *§"R%§"%$§"% - that sucks!</p>
<p dir="auto">I don't know if this is the latest documentaion <a href="http://docs.ansible.com/ansible/playbooks_tags.html" rel="nofollow">http://docs.ansible.com/ansible/playbooks_tags.html</a> but this isn't working for me.</p>
<p dir="auto">I used ansible 2.0.2 on my latest ubuntu 15.10 system. Now i'm back on 1.9.2 and it is running fine again.</p>
<p dir="auto">Any ideas?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% cat master.yml

---
- include: /home/kevin/git/scrye-ansible/playbooks/one.yml
- include: /home/kevin/git/scrye-ansible/playbooks/two.yml"><pre class="notranslate"><code class="notranslate">% cat master.yml

---
- include: /home/kevin/git/scrye-ansible/playbooks/one.yml
- include: /home/kevin/git/scrye-ansible/playbooks/two.yml
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% cat playbooks/one.yml
- name: one playbook
  hosts: td
  gather_facts: True

  tasks:

  - name: test
    command: uptime
    tags:
    - one"><pre class="notranslate"><code class="notranslate">% cat playbooks/one.yml
- name: one playbook
  hosts: td
  gather_facts: True

  tasks:

  - name: test
    command: uptime
    tags:
    - one
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% cat playbooks/two.yml
- name: two
  hosts: peven
  gather_facts: True

  tasks:

  - name: test
    command: uptime
    tags:
    - two"><pre class="notranslate"><code class="notranslate">% cat playbooks/two.yml
- name: two
  hosts: peven
  gather_facts: True

  tasks:

  - name: test
    command: uptime
    tags:
    - two
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% ansible-playbook -u root -i inventory -t two master.yml (with 2.0)

PLAY [one playbook] ************************************************************

TASK [setup] *******************************************************************
ok: [td]

PLAY [two] *********************************************************************

TASK [setup] *******************************************************************
ok: [peven]

TASK [test] ********************************************************************
changed: [peven]

PLAY RECAP *********************************************************************
peven                      : ok=2    changed=1    unreachable=0    failed=0   
td                         : ok=1    changed=0    unreachable=0    failed=0   "><pre class="notranslate"><code class="notranslate">% ansible-playbook -u root -i inventory -t two master.yml (with 2.0)

PLAY [one playbook] ************************************************************

TASK [setup] *******************************************************************
ok: [td]

PLAY [two] *********************************************************************

TASK [setup] *******************************************************************
ok: [peven]

TASK [test] ********************************************************************
changed: [peven]

PLAY RECAP *********************************************************************
peven                      : ok=2    changed=1    unreachable=0    failed=0   
td                         : ok=1    changed=0    unreachable=0    failed=0   
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% ansible-playbook -u root -i inventory -t two master.yml (with 1.9.4)

PLAY [two] ******************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [peven]

TASK: [test] ****************************************************************** 
changed: [peven]

PLAY RECAP ******************************************************************** 
test -------------------------------------------------------------------- 0.29s
peven                      : ok=2    changed=1    unreachable=0    failed=0   "><pre class="notranslate"><code class="notranslate">% ansible-playbook -u root -i inventory -t two master.yml (with 1.9.4)

PLAY [two] ******************************************************************** 

GATHERING FACTS *************************************************************** 
ok: [peven]

TASK: [test] ****************************************************************** 
changed: [peven]

PLAY RECAP ******************************************************************** 
test -------------------------------------------------------------------- 0.29s
peven                      : ok=2    changed=1    unreachable=0    failed=0   
</code></pre></div>
<p dir="auto">It would be very nice if 2.0 didn't run setup on all the plays that don't include the tag you are running, this makes large included playbooks very slow.</p>