title: ansible variable reference : unable to read stdout_lines from register variable after ssh and command
body: <p>Team,
  My task is running she’ll commands on hosts that are pulled from registered variable. Currently two hosts but there will be 100 in production. 
  am unable to read out stdout or stdout_lines. my task and output is below. Its sshing to the remove server and then runnning df -h command and storing output.</p>
  
  <p>actual output ( with some texts stripped but not any brackets)</p>
  
  <pre><code>ok: [localhost] =&gt; {
          "raid_info.results": [
              {
                  "ansible_loop_var": "item", 
                  "changed": true, 
                  "cmd": "ssh -F /home/svcngcctal.net \"df -kh /raid/\"", 
                  "delta": "0:00:02.095839", 
                  "end": "2019-10-24 22:55:38.323679", 
                  "failed": false, 
                  "failed_when_result": false, 
                  "invocation": {
                      "module_args": {
                          "_raw_params": "ssh -F /home/metal.net \"df -kh /raid/\"", 
                          "_uses_shell": true, 
                          "warn": true
                      }
                  }, 
                  "item": {
                      "nodeType": "4.15.0-45-generic", 
                      "node_name": "hostB"
                  }, 
                  "rc": 0, 
                  "start": "2019-10-24 22:55:36.227840", 
                  "stderr": "Warning: Permanently***", 
                  "stderr_lines": [
                      "Warning:asd"
                  ], 
                  "stdout": "Filesystem      Size  Used Avail Use% Mounted on\n/dev/sdb1       7.0T  175G  6.5T   3% /raid", 
                  "stdout_lines": [
                      "Filesystem      Size  Used Avail Use% Mounted on", 
                      "/dev/sdb1       7.0T  175G  6.5T   3% /raid"
                  ]
              }, 
              {
                  "ansible_loop_var": "item", 
                  "changed": true, 
                  "cmd": "ssh -F /home/svcngcc/jenkinstal.net \"df -kh /raid/\"", 
                  "delta": "0:00:02.115591",
                  "invocation": {
                      "module_args": {
                          "_raw_params": "ssh -F /home/sal.net \"df -kh /raid/\"", 
  
                          "warn": true
                      }
                  }, 
                  "item": {
                      "nodeType": "4.15.0-45-generic", 
                      "node_name": "hostA"
                  }, 
                  "rc": 0, 
                  "start": "2019-10-24 22:55:38.467007", ", 
                  "stderr_lines": [
                      "Warning: Permanently "
                  ], 
                  "stdout": "Filesystem      Size  Used Avail Use% Mounted on\n/dev/sdb1       7.0T  176G  6.5T   3% /raid", 
                  "stdout_lines": [
                      "Filesystem      Size  Used Avail Use% Mounted on", 
                      "/dev/sdb1       7.0T  176G  6.5T   3% /raid"
                  ]
              }
          ]
      }
  
  </code></pre>
  
  <p>from above output am not able to read stdout lines to verify the mount point..</p>
  
  <p>task:</p>
  
  <pre><code>      - name: "RAID mount check for fscache on GPU Nodes"
          shell: ssh -F {{ ssh_cfg_path.stdout }} {{ item.node_name }}.{{ ssh_host }} "df -kh /raid/"
          ignore_errors: no
          register: raid_info
          failed_when: raid_info.rc != 0
          with_items: "{{ gpu_nodes }}"
  
        - name: raid_info results1_stdout_lines
          debug:
            var: raid_info.results[1].stdout_lines
  </code></pre>
  
  <p>does not output anything..</p>