From ee2eecf737dcbbe06828df93b1f8910a98759071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Fri, 19 Apr 2024 20:56:52 +0200 Subject: [PATCH] Remove rearrange folders --- roles/ubuntu/tasks/main.yml | 3 --- roles/ubuntu/tasks/rearrange-folders-loop.yml | 8 -------- roles/ubuntu/tasks/rearrange-folders.yml | 17 ----------------- 3 files changed, 28 deletions(-) delete mode 100644 roles/ubuntu/tasks/rearrange-folders-loop.yml delete mode 100644 roles/ubuntu/tasks/rearrange-folders.yml diff --git a/roles/ubuntu/tasks/main.yml b/roles/ubuntu/tasks/main.yml index 0f8066c..5666529 100644 --- a/roles/ubuntu/tasks/main.yml +++ b/roles/ubuntu/tasks/main.yml @@ -1,7 +1,4 @@ --- -- import_tasks: rearrange-folders.yml - when: ansible_distribution == "Ubuntu" - - import_tasks: cleanup.yml when: ansible_distribution == "Ubuntu" diff --git a/roles/ubuntu/tasks/rearrange-folders-loop.yml b/roles/ubuntu/tasks/rearrange-folders-loop.yml deleted file mode 100644 index e4da864..0000000 --- a/roles/ubuntu/tasks/rearrange-folders-loop.yml +++ /dev/null @@ -1,8 +0,0 @@ -- name: "Lookup for {{ item }} directory" - stat: - path: "{{ desktop.old_source_dir }}/{{ item }}" - register: old_directory -- name: "Move {{ desktop.old_source_dir }}/{{ item }} to {{ desktop.apps_source_dir }}/{{ item }}" - command: mv {{ desktop.old_source_dir }}/{{ item }} {{ desktop.apps_source_dir }}/{{ item }} - when: - - old_directory.stat.exists diff --git a/roles/ubuntu/tasks/rearrange-folders.yml b/roles/ubuntu/tasks/rearrange-folders.yml deleted file mode 100644 index a193d5d..0000000 --- a/roles/ubuntu/tasks/rearrange-folders.yml +++ /dev/null @@ -1,17 +0,0 @@ -- name: create directory - file: - state: directory - path: "{{ desktop.apps_source_dir }}" - -- include_tasks: rearrange-folders-loop.yml - loop: - - asusctl - - dotfiles - - dwm - - dwm-nest - - ego - - dwmstatus - - polybar - - streamdeck - - stterm - - supergfxctl