spacepaste

  1.  
  2. ---
  3. - hosts: all
  4. tasks:
  5. - name: run report
  6. script: pkgReport.py {{ inventory_hostname }}
  7. register: report
  8. - name: build local report
  9. lineinfile:
  10. path: "/tmp/pkgReport.txt"
  11. insertafter: EOF
  12. line: "{{ item }}"
  13. state: present
  14. create: yes
  15. with_items: "{{ report.stdout.lines }}"
  16. delegate_to: 127.0.0.1
  17.