<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook --version
ansible-playbook 2.0.0.2
  config file = /var/lib/jenkins/jobs/XXX/workspace/ansible.cfg
  configured module search path = modules/ansible"><pre class="notranslate"><code class="notranslate">ansible-playbook --version
ansible-playbook 2.0.0.2
  config file = /var/lib/jenkins/jobs/XXX/workspace/ansible.cfg
  configured module search path = modules/ansible
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Nothing special</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Linux</p>
<p dir="auto">Replicable on Ubuntu and CentOS</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Following line works as expected</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="when: job_status.json.status == 'FAILED' or job_status.json.status == 'PASSED'"><pre class="notranslate"><code class="notranslate">when: job_status.json.status == 'FAILED' or job_status.json.status == 'PASSED'
</code></pre></div>
<p dir="auto">Wrapping same code with inline array:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="when: job_status.json.status in ['FAILED','PASSED']"><pre class="notranslate"><code class="notranslate">when: job_status.json.status in ['FAILED','PASSED']
</code></pre></div>
<p dir="auto">Triggers error:<br>
["FAILED"' failed. The error was: template error while templating string: unexpected '}', expected ']'. String: {% if job_status.json.status in ["FAILED" %} True {% else %} False {% endif %}</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">Syntax for 'in' operator should work in when statement with inline array definition.<br>
Most probably inline array is interpreted differently, most probably can be fixed by enforcing interpretation of [] when preceded by in operator.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div>
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">1.7.2</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Centos 6</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">When using git module with recursive=no the option is used on initial clone but ignore on subsequent checkout if new commits are available</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<p dir="auto">use a task like :</p>
<p dir="auto">name: sync front with prepub branch (www) git: repo="{{local_git}}" dest={{git_root}} version={{git_branch_name}} recursive=no<br>
run the task a first time,<br>
add commits to your branch,<br>
run a second time</p>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">submodule are always ignored</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">submodule aren't ignore after initial clone if they are new commits available</p>