Add extra_args support to install-service justfile command

It's now possible to do: `just install-service gitea -l host.example.com`
This commit is contained in:
Slavi Pantaleev 2023-03-20 14:45:27 +02:00
parent 7a7f8a221a
commit 11cafe8f26

View file

@ -15,8 +15,8 @@ lint:
install-all *extra_args: (run-tags "install-all,start" extra_args)
# Runs installation tasks for a single service
install-service service:
just --justfile {{ justfile() }} run --tags=install-{{ service }},start-group --extra-vars=group={{ service }}
install-service service *extra_args:
just --justfile {{ justfile() }} run --tags=install-{{ service }},start-group --extra-vars=group={{ service }} {{ extra_args }}
# Runs the playbook with --tags=setup-all,start and optional arguments
setup-all *extra_args: (run-tags "setup-all,start" extra_args)