github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/bench/tools/aisloader-composer/playbooks/disk_bench.yaml (about)

     1  - hosts: target_hosts
     2    gather_facts: no
     3    tasks:
     4  
     5    - name: install fio
     6      ansible.builtin.apt:
     7        name: fio
     8        state: latest
     9  
    10    - name: upload fio job configs
    11      ansible.builtin.copy:
    12        src: "{{ item.src }}" 
    13        dest: "{{ item.dest }}"
    14      loop:
    15        - src: ../fio/rand_read.fio
    16          dest: rand_read.fio
    17        # - src: fio/rand_write.fio
    18        #   dest: rand_write.fio
    19        - src: ../fio/seq_read.fio
    20          dest: seq_read.fio
    21  
    22    - name: start benchmark 
    23      ansible.builtin.script: scripts/disk_bench.sh
    24  
    25    - name: find output files
    26      find:
    27        paths: "/tmp/diskbench/"
    28        patterns: "fio*"
    29        use_regex: False
    30      register: outfiles
    31  
    32    - name: fetch output files
    33      fetch:
    34        src: "{{ item.path }}"
    35        dest: ../output/disk/
    36        flat: yes
    37      with_items: "{{ outfiles.files }}"