{"id":6186,"sha1":"dc0038cc5dce11eb99a757ac21ef8a878c68f526","playbook":{"id":4066,"items":{"plays":1,"tasks":4,"results":8,"hosts":3,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/hosts-proxmox"],"listhosts":false,"subset":null,"extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["zz-import-raid-reports.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2025-10-07T11:19:02.920553+01:00","ended":"2025-10-07T11:19:11.570922+01:00","duration":"00:00:08.650369","name":null,"ansible_version":"2.16.11","client_version":"1.7.3","python_version":"3.10.10","server_version":"1.7.3","status":"completed","path":"/home/ssh-gateway/ansible/kuly/zz-import-raid-reports.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Run and fetch raid reports\n  hosts: all\n  gather_facts: false\n  vars:\n    remote_dir: /root/raid_summary\n    local_base_dir: \"raid_reports\"\n  tasks:\n    - name: Run the file to generate report\n      ansible.builtin.shell: |\n        set -o pipefail\n        mkdir -p /root/raid_summary\n        rm -f /root/raid_summary/raid_summary.csv\n        cd /root\n        ./generate_raid_report.sh -w\n      args:\n        executable: /bin/bash\n      changed_when: false\n\n    - name: Create local directory for this host\n      delegate_to: localhost\n      run_once: true\n      ansible.builtin.file:\n        path: \"{{ local_base_dir }}/{{ inventory_hostname }}\"\n        state: directory\n        mode: '0755'\n    - name: Find files in remote directory\n      ansible.builtin.find:\n        paths: \"{{ remote_dir }}\"\n        file_type: file\n      register: remote_files\n    - name: Fetch each found file to the local host-specific directory\n      ansible.builtin.fetch:\n        src: \"{{ item.path }}\"\n        dest: \"{{ local_base_dir }}/{{ inventory_hostname }}/{{ item.path | basename }}\"\n        flat: true\n      loop: \"{{ remote_files.files }}\"\n","created":"2025-10-07T11:19:02.947076+01:00","updated":"2025-10-07T11:19:02.947113+01:00","path":"/home/ssh-gateway/ansible/kuly/zz-import-raid-reports.yaml"}