title: issue with ansible register: copy: and stdout
body: <p>I have an Ansible 2.6 playbook that is trying to run a couple (want to add more when I get the issue fixed) commands on a series of Cisco Nexus switches and write the output to a file (one file per switch).  The playbook runs successfully but I cannot seem to get the output into a readable format.  Thanks in advance for anythinng to try!</p>
  
  <p>Example output:</p>
  
  <p>Module 1: v1.0\n             Module 1: v1.0\n             Module 2: v1.0\n             Module 7: v2.0\n             Module 8: v2.0\n  Fabric Power Sequencer Firmware: Module 0: version v3.0\n  Microcontroller Firmware:        version v1.2.2.0\n  QSFP Microcontroller Firmware:   \n             Module 1: v1.7.0.0\n             Module 2: v1.7.0.0\n  SFP Microcontroller Firmware:   \n  </p>
  
  <h2>PLAYBOOK:</h2>
  
  <pre><code>    - hosts: NX-API
        gather_facts: false
        connection: network_cli
        order: sorted
  
  
        tasks:
          - name: run show version on remote devices
            nxos_command:
              commands:
                - show version
                - show interface status
            register: pre_check
  
          - name: save output to /home/ansible/PRECHECK/
            copy:
              content:
                  with_items:
                     - "{{ pre_check.stdout[0] }}"
                     - "{{ pre_check.stdout[1] }}"
              dest: "/home/PRECHECK/pre_check_{{ inventory_hostname }}.txt"
  </code></pre>