From 7bf6173efacd09b116770614529c2c0d448ba1ff Mon Sep 17 00:00:00 2001 From: Slavi Pantaleev Date: Wed, 22 Nov 2023 15:03:27 +0200 Subject: [PATCH] Only optimize based on vars.yml, not on all .yml files (vault.yml, etc.) --- justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 3877e7a..67ea5f6 100644 --- a/justfile +++ b/justfile @@ -41,14 +41,14 @@ _reconfigure-for-all-hosts inventory_path='inventory': #!/usr/bin/env sh just --justfile {{ justfile() }} \ _optimize-for-var-paths \ - $(find {{ inventory_path }}/host_vars/ -maxdepth 2 -name '*.yml' -exec readlink -f {} \;) + $(find {{ inventory_path }}/host_vars/ -maxdepth 2 -name 'vars.yml' -exec readlink -f {} \;) # Optimizes the playbook based on the enabled components for a single host optimize-for-host hostname inventory_path='inventory': #!/usr/bin/env sh just --justfile {{ justfile() }} \ _optimize-for-var-paths \ - $(find {{ inventory_path }}/host_vars/{{ hostname }} -maxdepth 1 -name '*.yml' -exec readlink -f {} \;) + $(find {{ inventory_path }}/host_vars/{{ hostname }} -maxdepth 1 -name 'vars.yml' -exec readlink -f {} \;) # Optimizes the playbook based on the enabled components found in the given vars.yml files _optimize-for-var-paths +PATHS: