From 39315e77a7068a528c0e3b29bff4c6643baf642f Mon Sep 17 00:00:00 2001 From: mikepell Date: Fri, 7 Oct 2022 15:49:27 +0000 Subject: [PATCH 1/4] update filebrowser version --- roles/filebrowser/tasks/main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/filebrowser/tasks/main.yaml b/roles/filebrowser/tasks/main.yaml index dfcdeda..2c83c93 100644 --- a/roles/filebrowser/tasks/main.yaml +++ b/roles/filebrowser/tasks/main.yaml @@ -1,7 +1,7 @@ --- - name: get filebrowser binary get_url: - url: "https://github.com/filebrowser/filebrowser/releases/download/v2.16.1/linux-amd64-filebrowser.tar.gz" + url: "https://github.com/filebrowser/filebrowser/releases/download/v2.22.4/linux-amd64-filebrowser.tar.gz" dest: "/root/linux-amd64-filebrowser.tar.gz" tags: filebrowser register: filebrowser_download From 76ad8a65a18053bdac326e173e97e239bd5ab630 Mon Sep 17 00:00:00 2001 From: mikepell Date: Fri, 7 Oct 2022 16:05:40 +0000 Subject: [PATCH 2/4] Update 'README.md' --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7c4a824..5f350d2 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,4 @@ Misc scripts for eve-ng. * Filebrowser role * apt install ansible sshpass - * ansible-playbook -i hosts filebrowser.yaml + * ansible-playbook -i hosts filebrowser.yaml -kK From 45f86f80572ca63fb8e2cf80f2bbd87d99a735c3 Mon Sep 17 00:00:00 2001 From: "Pellegrino, Michael" Date: Fri, 7 Oct 2022 13:47:15 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f350d2..9ba82af 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ Misc scripts for eve-ng. - -* Filebrowser role +* listimages2 -- this will produce a listing of all images on the server that are currently in use in a lab. Useful for cleaning up old versions of images. +* Filebrowser role -- FileBrowser is a web-based upload and download tool. This will allow web-based uploading of images to the eve-ng server as opposed to using SCP/WinSCP. Uploading a folder with an image to the eve-ng server via this interface will automatically run the eve-ng commands (unl_wrapper -a fixpermissions) upon completion. * apt install ansible sshpass * ansible-playbook -i hosts filebrowser.yaml -kK From f63e3aa1dd84f3c93e1c5a877728eae47bba993f Mon Sep 17 00:00:00 2001 From: mikepell Date: Sat, 8 Oct 2022 18:37:14 +0000 Subject: [PATCH 4/4] add fixperms command for save, copy, delete, upload, rename --- roles/filebrowser/tasks/main.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/filebrowser/tasks/main.yaml b/roles/filebrowser/tasks/main.yaml index 2c83c93..04fd24b 100644 --- a/roles/filebrowser/tasks/main.yaml +++ b/roles/filebrowser/tasks/main.yaml @@ -43,6 +43,10 @@ with_items: - config init -a 0.0.0.0 -p 8899 - users add admin admin --perm.admin + - cmds add "after_copy" "/opt/unetlab/wrappers/unl_wrapper -a fixpermissions" + - cmds add "after_delete" "/opt/unetlab/wrappers/unl_wrapper -a fixpermissions" + - cmds add "after_rename" "/opt/unetlab/wrappers/unl_wrapper -a fixpermissions" + - cmds add "after_save" "/opt/unetlab/wrappers/unl_wrapper -a fixpermissions" - cmds add "after_upload" "/opt/unetlab/wrappers/unl_wrapper -a fixpermissions" register: filebrowser_init when: filebrowser_etc