<p dir="auto">Issue Type:</p>
<p dir="auto">Bug Report<br>
Ansible Version:<br>
ansible 1.9.2<br>
configured module search path = None</p>
<p dir="auto">Ansible Configuration:</p>
<p dir="auto">No changes to .cfg, using vanilla installed package version installed with pip</p>
<p dir="auto">Environment:</p>
<p dir="auto">Ubuntu 14.04</p>
<p dir="auto">Summary:</p>
<p dir="auto">using with_sequence will skip the play when the sequence is only a single item long.</p>
<p dir="auto">Steps To Reproduce:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  tasks:
    - name: print thing
      debug: var={{ item }}
      with_sequence: count=1"><pre class="notranslate"><code class="notranslate">  tasks:
    - name: print thing
      debug: var={{ item }}
      with_sequence: count=1
</code></pre></div>
<p dir="auto">Expected Results:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ok: [localhost] =&gt; (item=1) =&gt; {
    &quot;item&quot;: &quot;1&quot;, 
    &quot;var&quot;: {
        &quot;1&quot;: &quot;1&quot;
    }
}"><pre class="notranslate"><code class="notranslate">ok: [localhost] =&gt; (item=1) =&gt; {
    "item": "1", 
    "var": {
        "1": "1"
    }
}
</code></pre></div>
<p dir="auto">Actual Results:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="skipping: [localhost]"><pre class="notranslate"><code class="notranslate">skipping: [localhost]
</code></pre></div>
<p dir="auto">ansible 1.9.2<br>
osx and ubuntu</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    - name: count=2
      debug: var=item
      with_sequence: count=2

    - name: count=1
      debug: var=item
      with_sequence: count=1"><pre class="notranslate"><code class="notranslate">    - name: count=2
      debug: var=item
      with_sequence: count=2

    - name: count=1
      debug: var=item
      with_sequence: count=1
</code></pre></div>
<p dir="auto">results in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK: [count=2] ***************************************************************
ok: [localhost] =&gt; (item=1) =&gt; {
    &quot;item&quot;: &quot;1&quot;,
    &quot;var&quot;: {
        &quot;item&quot;: &quot;1&quot;
    }
}
ok: [localhost] =&gt; (item=2) =&gt; {
    &quot;item&quot;: &quot;2&quot;,
    &quot;var&quot;: {
        &quot;item&quot;: &quot;2&quot;
    }
}

TASK: [count=1] ***************************************************************
skipping: [localhost]"><pre class="notranslate"><code class="notranslate">TASK: [count=2] ***************************************************************
ok: [localhost] =&gt; (item=1) =&gt; {
    "item": "1",
    "var": {
        "item": "1"
    }
}
ok: [localhost] =&gt; (item=2) =&gt; {
    "item": "2",
    "var": {
        "item": "2"
    }
}

TASK: [count=1] ***************************************************************
skipping: [localhost]
</code></pre></div>