Commit Graph
11 Commits
Author SHA1 Message Date
Slavi PantaleevandClaude Opus 5.5 5edfff23f8 Add list-tags just recipe
This lists all playbook tags, one per line, without opening role files.
The tags are captured before being processed, so that an Ansible failure
fails the recipe instead of getting lost in a pipe.

Unlike in mash-playbook, the tags are not limited to the services in use
by the inventory, because this playbook does not optimize its roles.

This also drops the mention of the `setup-nginx-proxy` tag, which no
longer exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 14:01:53 +02:00
QEDeDandSlavi Pantaleev d69bf26d67 Restart all targeted services on start and restart runs again
Conditional restart is enabled whenever no setup-* tag is selected, so it
also applies to runs with only start or restart tags. These runs skip
the install tasks that set each role's *_restart_necessary, so every
service whose value is false is only started. When the rule was added,
only Traefik tracked its changes this way; now most roles do, so
`just start-all` and `just start-group` restart almost nothing, contrary
to docs/just.md.

Enable conditional restart only when an install-* tag is selected and no
setup-* tag. install-* runs keep conditional restart and setup-* runs are
unchanged; runs with only start or restart tags restart their targeted
services unconditionally again. Show the restart behavior of each
standard recipe in docs/just.md and announce the change in CHANGELOG.md.
2026-10-19 09:10:11 +03:00
QEDeDandSlavi Pantaleev ce24219389 Correct the install-service tags in the docs/just.md shortcuts table
The install-service recipe runs install-SERVICE,start-group with the
service as its group, not install-SERVICE,start as the table says.
2026-10-19 09:10:11 +03:00
Slavi PantaleevandClaude Opus 4.6 4a8df13854 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>
2026-02-13 14:21:07 +02:00
Slavi PantaleevandClaude Opus 4.6 9accc848c4 Wire conditional restart for Traefik and update setup-all to force restarts
- Traefik's service list entry now uses the `traefik_restart_necessary`
  variable (computed by the Traefik role) instead of hardcoded `true`,
  so it is only restarted when its config, systemd unit, or image changed.

- `just setup-all` now passes
  `devture_systemd_service_manager_conditional_restart_enabled=false`
  to force unconditional restarts, matching its "full setup" semantics.

- Document the conditional restart behavior in docs/just.md.

Some benchmarks follow for `just install-service traefik -l matrix.example.com`
when Traefik settings did not change and a restart is not really necessary:

- Before:
  - total time: 56 seconds 🐌
  - Traefik restarted: yes ❌
  - Services that depend on Traefik restarted: yes; all of them restarted ❌

- After:
  - total time: 27 seconds ⚡
  - Traefik restarted: no ✅
  - Services that depend on Traefik restarted: no; none restarted ✅

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-13 12:32:02 +02:00
Suguru Hirahara 5b3f9510b0 Update docs/just.md: remove a duplicate anchor link
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2025-02-22 18:26:29 +09:00
Suguru Hirahara 0dac0d8f83 Update docs/just.md: add a copyright header
This file was created with e36115a5b9 based on fb60ba67f6 (announcement of adoption of just program).

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2025-02-21 16:28:07 +09:00
Suguru Hirahara f5c6b61561 Update docs/just.md: fix the description
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2025-02-03 16:18:48 +09:00
Suguru Hirahara 76e346573c Replace hyphen as dash with "Em Dash" unicode character (U+2014)
This commit replaces hyphen characters used as dash with the actual unicode character for dash. It avoids using HTML character entity reference (&mdash;), because IMHO it would make it a bit harder to read documents as plain markdown files on your local text editor.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2025-01-26 16:35:59 +09:00
Suguru Hirahara 687627ccd7 Use "alice" as placeholder username instead of "john"
"alice" is normally used in combination with "bob", though.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-11-28 22:11:47 +09:00
e36115a5b9 Add docs/just.md (#3811)
* Add docs/just.md as dedicated documentation of "just" commands

This is partially based on fb60ba67f6 (announcement of adoption of "just" program). It also refers descriptions on installing.md.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Create a table for examples

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Fix entries on the table

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Move the anchor link to "agru"

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Edit docs/faq.md: add an entry for the just

It is based on the existing explanation of the just on docs/maintenance-upgrading-services.md.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Add links to docs/just.md

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Update docs/just.md: add a common note

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>

* Clarify "What is just" section on FAQ

* Update just.md

* Mention install-service

---------

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2024-11-23 11:52:48 +02:00