kubekey/docs/en/modules/set_fact.md
liujian 192af7bb7e
feat: add Chinese README and documentation updates (#2791)
- Introduced a new Chinese version of the README file (README_zh-CN.md) to enhance accessibility for Chinese-speaking users.
- Updated the English README to reflect new features and installation instructions.
- Added detailed documentation for project structure, playbooks, roles, tasks, and modules to improve user understanding and usability.

Signed-off-by: [Your Name] <[Your Email]>
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
2025-09-30 10:00:07 +08:00

486 B

set_fact Module

The set_fact module allows users to set variables effective on the currently executing host.

Parameters

Parameter Description Type Required Default
any Any parameter to set string or map No -

Usage Examples

  1. Set string variables
- name: set string
  set_fact:
    a: b
    c: d
  1. Set map variables
- name: set map
  set_fact:
    a: 
      b: c