Only optimize based on vars.yml, not on all .yml files (vault.yml, etc.)
This commit is contained in:
parent
5d2ce5ecac
commit
7bf6173efa
1 changed files with 2 additions and 2 deletions
4
justfile
4
justfile
|
@ -41,14 +41,14 @@ _reconfigure-for-all-hosts inventory_path='inventory':
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
just --justfile {{ justfile() }} \
|
just --justfile {{ justfile() }} \
|
||||||
_optimize-for-var-paths \
|
_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
|
# Optimizes the playbook based on the enabled components for a single host
|
||||||
optimize-for-host hostname inventory_path='inventory':
|
optimize-for-host hostname inventory_path='inventory':
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
just --justfile {{ justfile() }} \
|
just --justfile {{ justfile() }} \
|
||||||
_optimize-for-var-paths \
|
_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
|
# Optimizes the playbook based on the enabled components found in the given vars.yml files
|
||||||
_optimize-for-var-paths +PATHS:
|
_optimize-for-var-paths +PATHS:
|
||||||
|
|
Loading…
Reference in a new issue