legacy-of-lunatic-kingdom: fail runs without --limit
Assisted-by: GLM-5.3 via pi
change rvtvsxkulovquzxonxswqpvrkzpwyszl
commit b0c461fe79eba0d652ced4f832918699b718d5cb
author Alpha Chen <alpha@kejadlen.dev>
date
parent tonqzlrz
diff --git a/legacy-of-lunatic-kingdom/main.yml b/legacy-of-lunatic-kingdom/main.yml
index 346c8e8..b2587c2 100644
--- a/legacy-of-lunatic-kingdom/main.yml
+++ b/legacy-of-lunatic-kingdom/main.yml
@@ -1,3 +1,19 @@
+# The imported shared plays target {{ ansible_limit }} and match nothing
+# without it, so a bare run would apply this host's plays and skip theirs.
+- name: Require --limit
+  hosts: legacy-of-lunatic-kingdom
+  gather_facts: false
+  tags: always
+  tasks:
+
+    - name: Fail without --limit
+      ansible.builtin.assert:
+        that: ansible_limit is defined
+        fail_msg: >-
+          Run with --limit legacy-of-lunatic-kingdom; without it the imported
+          shared plays match nothing and this playbook half-applies.
+        quiet: true
+
 - name: Basic requirements
   hosts: legacy-of-lunatic-kingdom
   become: true