class

Krikri::SetFactActionPlugin

Inherits Krikri::ActionPlugin < Reference < Object

set_fact: (ansible.builtin.set_fact) as a controller-side action plugin - ported verbatim from plugins/set_fact.cr (including the leading-zero-string / Python-repr-dict coercion fixes documented there). Never touches the filesystem or network, so there was never anything a remote round trip bought here either. plugins/set_fact.cr is kept as a real, working binary for --async/manual invocation.

Constants

CONTROL_PARAMS = {"cacheable"}
JINJA_KEYWORD_KEYS = {"True", "False", "None", "true", "false", "none", "not"}

Ansible's utils/vars.py validate_variable_name allowlist: a Python str.isidentifier() (ASCII-only enforced here) that is not one of the few Jinja-reserved words.

Instance methods

execute

Execute action on controller Returns: modified params to send to remote plugin, or nil if action failed

Source