Ansible multiple commands to a file
Judging by the documentation, the result of your run multiple commands on remote nodes block is an array. You're writing only the first item of that array with {{ print_output.stdout[0] }}. The [0] here is the pointer to the first element of the array. Try removing it and see if the result fits your needs.
UPD: Use this to write several strings into a file:
- name: save output to a file
  lineinfile:
    create: yes
    line: &quot;{{item}}&quot;
    path: ./output/{{ inventory_hostname }}.txt
  with_items: &quot;{{ print_output.stdout }}&quot;