mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
- 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>
628 B
628 B
add_hostvars Module
The add_hostvars module allows users to set variables that take effect on the specified hosts.
Parameters
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
| hosts | Target hosts to set parameters for | String or array of strings | No | - |
| vars | Parameters to set | Map | No | - |
Usage Examples
- Set a string parameter
- name: set string
add_hostvars:
hosts: all
vars:
c: d
- Set a map parameter
- name: set map
add_hostvars:
hosts: all
vars:
a:
b: c