{"id":5099,"sha1":"55b7b3ea409bf44298563fc2cea346d33d7228a3","playbook":{"id":2993,"items":{"plays":1,"tasks":3,"results":3,"hosts":2,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"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-kvm-nodes"],"listhosts":false,"subset":"kvm1-dev","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":["fetch-files-from-hosts.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":189,"name":"subset:kvm1-dev"}],"started":"2025-05-23T10:59:47.588647+01:00","ended":"2025-05-23T10:59:49.452504+01:00","duration":"00:00:01.863857","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"completed","path":"/home/ssh-gateway/ansible/kuly/fetch-files-from-hosts.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"content":"---\n- name: Fetch the panelinis\n  hosts: all\n  gather_facts: false\n  vars:\n    remote_dir: /root/panelinis\n    local_base_dir: \"fetched_files\"\n  tasks:\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-05-23T10:59:47.611951+01:00","updated":"2025-05-23T10:59:47.611976+01:00","path":"/home/ssh-gateway/ansible/kuly/fetch-files-from-hosts.yaml"}