mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-12-21 12:14:01 +00:00
Add "install-service" justfile command
It should be noted that this cannot be used for the initial install of services which require a database or have other dependencies. Those would typically need to invoke the playbook with `--tags=install-postgres,install-SERVICE`, etc. The purpose of this shortcut is to easily rebuild and restart a single serice subsequently. For those cases, often times there's no need to reinitialize the database and other components and simply running a single component's tasks is enough.
This commit is contained in:
parent
2c233492db
commit
3e84e354a8
4
justfile
4
justfile
@ -14,6 +14,10 @@ lint:
|
||||
# Runs the playbook with --tags=install-all,ensure-matrix-users-created,start and optional arguments
|
||||
install-all *extra_args: (run-tags "install-all,ensure-matrix-users-created,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 }}
|
||||
|
||||
# Runs the playbook with --tags=setup-all,ensure-matrix-users-created,start and optional arguments
|
||||
setup-all *extra_args: (run-tags "setup-all,ensure-matrix-users-created,start" extra_args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user