From d0544ae319b8fe24e15597e0c02ecddcaad02467 Mon Sep 17 00:00:00 2001 From: VR - Dell5400 Date: Tue, 3 Aug 2021 14:37:17 +0100 Subject: [PATCH] Oke, got it now... --- home_linux/get_all_logs.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 home_linux/get_all_logs.yml diff --git a/home_linux/get_all_logs.yml b/home_linux/get_all_logs.yml deleted file mode 100644 index 55b5dd2..0000000 --- a/home_linux/get_all_logs.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -- name: Copy the contents of the "/var/log" folder to the Ansible controller - hosts: all - roles: - - common - become: yes - - tasks: - - - name: Generate the list of files to be copied - shell: "cd /var/log; find . -maxdepth 1 -type f | cut -d'/' -f2" - register: files_to_copy - - - name: Copy the log files - fetch: - src: /var/log/{{ item }} - dest: /mnt/c/Ansible/fetched_logs - with_items: "{{ files_to_copy.stdout_lines }}" - - -