From 817afc1ca0c7585e53c2c60f629ea1dddb0c4a5c Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Sun, 20 Jan 2019 18:25:07 +0000 Subject: [PATCH] Ensure OS tasks are included in a specific order --- .../desktop/tasks/darwin/{homebrew.yaml => 00_homebrew.yaml} | 0 .ansible/roles/desktop/tasks/darwin/{mas.yaml => 10_mas.yaml} | 0 .../roles/desktop/tasks/darwin/{prefs.yaml => 20_prefs.yaml} | 0 .../desktop/tasks/linux/{software.yaml => 00_software.yaml} | 0 .../roles/desktop/tasks/linux/{config.yaml => 10_config.yaml} | 0 .ansible/roles/desktop/tasks/main.yaml | 2 +- 6 files changed, 1 insertion(+), 1 deletion(-) rename .ansible/roles/desktop/tasks/darwin/{homebrew.yaml => 00_homebrew.yaml} (100%) rename .ansible/roles/desktop/tasks/darwin/{mas.yaml => 10_mas.yaml} (100%) rename .ansible/roles/desktop/tasks/darwin/{prefs.yaml => 20_prefs.yaml} (100%) rename .ansible/roles/desktop/tasks/linux/{software.yaml => 00_software.yaml} (100%) rename .ansible/roles/desktop/tasks/linux/{config.yaml => 10_config.yaml} (100%) diff --git a/.ansible/roles/desktop/tasks/darwin/homebrew.yaml b/.ansible/roles/desktop/tasks/darwin/00_homebrew.yaml similarity index 100% rename from .ansible/roles/desktop/tasks/darwin/homebrew.yaml rename to .ansible/roles/desktop/tasks/darwin/00_homebrew.yaml diff --git a/.ansible/roles/desktop/tasks/darwin/mas.yaml b/.ansible/roles/desktop/tasks/darwin/10_mas.yaml similarity index 100% rename from .ansible/roles/desktop/tasks/darwin/mas.yaml rename to .ansible/roles/desktop/tasks/darwin/10_mas.yaml diff --git a/.ansible/roles/desktop/tasks/darwin/prefs.yaml b/.ansible/roles/desktop/tasks/darwin/20_prefs.yaml similarity index 100% rename from .ansible/roles/desktop/tasks/darwin/prefs.yaml rename to .ansible/roles/desktop/tasks/darwin/20_prefs.yaml diff --git a/.ansible/roles/desktop/tasks/linux/software.yaml b/.ansible/roles/desktop/tasks/linux/00_software.yaml similarity index 100% rename from .ansible/roles/desktop/tasks/linux/software.yaml rename to .ansible/roles/desktop/tasks/linux/00_software.yaml diff --git a/.ansible/roles/desktop/tasks/linux/config.yaml b/.ansible/roles/desktop/tasks/linux/10_config.yaml similarity index 100% rename from .ansible/roles/desktop/tasks/linux/config.yaml rename to .ansible/roles/desktop/tasks/linux/10_config.yaml diff --git a/.ansible/roles/desktop/tasks/main.yaml b/.ansible/roles/desktop/tasks/main.yaml index 66902da..cb6a77f 100644 --- a/.ansible/roles/desktop/tasks/main.yaml +++ b/.ansible/roles/desktop/tasks/main.yaml @@ -1,6 +1,6 @@ - name: Desktop tasks include_tasks: "{{ loop_task }}" - loop: "{{ query('fileglob', \"{{ ansible_system|lower }}/*\") }}" + loop: "{{ query('fileglob', \"{{ ansible_system|lower }}/*\") | sort }}" loop_control: loop_var: loop_task