class

Krikri::RoleDependencyCycleError

Inherits Exception < Reference < Object

A role's meta/main.yml dependencies forming a cycle (a role listing itself, or any A->B->A chain). Ansible loads meta dependencies eagerly and recursively with NO cycle check - Role.load simply recurses until it hits Python's recursion limit, and the RecursionError surfaces as a whole-run refusal (rc=1, on STDERR, with an Origin block at the dependency entry that closed the loop, live-verified vs 2.19.11) regardless of allow_duplicates. A separate class from RoleNotFoundError because the executor's include-role rescue chain reroutes that one per task; a cycle is a load-time refusal in Ansible, never a per-task skip.

Constructors

new(message : String, render : String | Nil = nil)
Source

Instance methods

render

Attached by #load_meta_dependencies, which owns the declaring role's meta/main.yml source map - the loader raise site itself has no source context.

Source
render=(render : String | Nil)

Attached by #load_meta_dependencies, which owns the declaring role's meta/main.yml source map - the loader raise site itself has no source context.

Source