- name: Collect combined logs from all machines
  hosts: all
  tasks:
    - name: Create destination directory on Ansible host
      local_action:
        module: file
        path: /root/bin-tool/test_collect/logs_summary/
        state: directory
        mode: '0755'

    - name: Collect combined_numbers.json from each machine
      fetch:
        src: /root/presurelog/combined_numbers.json
        dest: /root/bin-tool/test_collect/logs_summary/{{ inventory_hostname }}_combined_numbers.json
        flat: yes