title: Get correct powercli's result to Ansible register
body: <p>Hello everyone~ I have a question.</p>
  
  <p>Firstly..I can not speak English very well.</p>
  
  <p>Actually I have some problem...
  I want add new NIC to GuestVM by powercli.
  And then I want get MacAddress of new NIC on my GuestVM and I tried to save my register variable.</p>
  
  <p>==================================================</p>
  
  <p>&lt; My Ansible Code ></p>
  
  <pre><code>---
  - name:
    hosts: localhost
    gather_facts: no
    tasks:
  
    - name: Get new NIC MacAddress
      shell: |
        Connect-VIServer -Server '$my_vCenter' -User $my_ID -Password '$my_PWD' | Out-null
        $vm = get-vm | where { $_.ExtensionData.config.uuid -eq $my_UUID }
        $nic = New-NetworkAdapter -VM $vm -NetworkName "vmnet_10.40.95.x" -WakeOnLan -StartConnected
        $nic.MacAddress
  
      args:
        executable: /usr/bin/pwsh
      register: new_macaddress
      delegate_to: localhost
  
    - debug:
        var: new_macaddress.stdout_lines
  </code></pre>
  
  <p>====================================================================</p>
  
  <p>However, My register variable's result is not good.</p>
  
  <p>====================================================================</p>
  
  <p>&lt; register variable result ></p>
  
  <pre><code>{
      "changed": false,
      "_ansible_verbose_always": true,
      "new_macaddress.stdout_lines": [
          "",
          "",
          "",
          "",
          "",
          "                      00:50:56:8a:69:11"
      ],
      "_ansible_no_log": false
  }
  </code></pre>
  
  <p>====================================================================</p>
  
  <p>I want only MacAddress (00:50:56:8a:69:11), but there are many unnessesary things. (For example : "", "", "",......)</p>
  
  <p>So, I wonder that how I can get only macaddress.</p>
  
  <p>Please, help me T_T</p>