You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variable names listed in ``diff_params`` **must be module parameters**, as in parameters listed in the module's ``argument_spec``.
282
+
Names not found in ``argument_spec`` are silently ignored.
283
+
263
284
Moreover, if a module is set to return *facts* instead of return values, then again use the metadata ``fact=True`` and ``fact_params`` for module parameters.
264
285
Additionally, you must specify ``facts_name``, as in:
265
286
@@ -283,6 +304,11 @@ That generates an Ansible fact like:
283
304
debug:
284
305
msg: Volume fact is {{ ansible_facts.volume_facts.volume }}
285
306
307
+
.. important::
308
+
309
+
The variable names listed in ``fact_params`` **must be module parameters**, as in parameters listed in the module's ``argument_spec``.
310
+
Names not found in ``argument_spec`` are silently ignored.
311
+
286
312
.. important::
287
313
288
314
If ``facts_name`` is not set, the module does not generate any facts.
0 commit comments