Auto-detect conditional restart based on playbook tags and add CHANGELOG entry
- Override devture_systemd_service_manager_conditional_restart_enabled in group_vars based on ansible_run_tags: disabled when setup-* tags are used, enabled otherwise. This replaces the --extra-vars hack in the justfile and ensures consistent behavior for both `just` and raw `ansible-playbook` users. - Revert justfile setup-all to its original form (no --extra-vars needed). - Update docs/just.md to reflect tag-agnostic behavior. - Add CHANGELOG.md entry documenting the conditional restart feature. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2
justfile
2
justfile
@@ -53,7 +53,7 @@ install-service service *extra_args:
|
||||
--extra-vars=group={{ service }} {{ extra_args }}
|
||||
|
||||
# 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-vars=devture_systemd_service_manager_conditional_restart_enabled=false" extra_args)
|
||||
setup-all *extra_args: (run-tags "setup-all,ensure-matrix-users-created,start" extra_args)
|
||||
|
||||
# Runs the playbook with the given list of arguments
|
||||
run +extra_args:
|
||||
|
||||
Reference in New Issue
Block a user