roles: update handlers/main.yaml and set_opencloud.yaml to optimize init check logic in roles

This commit is contained in:
2026-04-06 23:40:06 +09:00
parent 664cf2956d
commit 8a4ce488f1
2 changed files with 12 additions and 10 deletions

View File

@@ -83,7 +83,7 @@
enabled: true
daemon_reload: true
scope: "user"
when: not (is_opencloud_init_run | default(false))
when: is_opencloud_init.stat.exists
changed_when: false
listen: "notification_restart_opencloud"
ignore_errors: true # noqa: ignore-errors