{"id":6229,"sha1":"84cc2d6c1460016c42eb5b6a53184b21e7c161ca","playbook":{"id":4109,"items":{"plays":1,"tasks":4,"results":32,"hosts":9,"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-backups-nodes"],"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-08T09:35:43.191207+01:00","ended":"2025-10-08T09:36:00.117993+01:00","duration":"00:00:16.926786","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_reports\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        rm -rf \"{{ remote_dir }}\"\n        cd /root\n        ./generate_raid_report.sh --write\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-08T09:35:43.222000+01:00","updated":"2025-10-08T09:35:43.222021+01:00","path":"/home/ssh-gateway/ansible/kuly/zz-import-raid-reports.yaml"}