title: Ansible variable null
body: <p>I have issue with playbook. I have two VMs in my inventory file. Ansible is registering variable form one VM while it is not from the second one</p>
  <p>Playbook:</p>
  <pre><code>- name: Getting dsmcad_DAY PID
    shell: pgrep dsmcad_DAY
    register: pid
    failed_when: &quot;pid.rc not in [ 0, 1 ]&quot;
  - name: show out
    debug: 
     msg: &quot;{{ pid }}&quot;
  </code></pre>
  <p>error:</p>
  <pre><code>TASK [show out] *************************************************************************************
  ok: [vm00008197] =&gt; {
      &quot;msg&quot;: &quot;&quot;
  }
  ok: [vm00008001] =&gt; {
      &quot;msg&quot;: &quot;45651&quot;
  </code></pre>
  <p>When i start this command manually on VMs output is fine.</p>
  <pre><code>[root@vm00008001 bin]# pgrep dsmcad_DAY
  45651
  
  
  [root@vm00008197 bin]# pgrep dsmcad_DAY
  3339
  </code></pre>