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>
1.2 KiB
1.2 KiB
result Module
The result module allows users to set variables to be displayed in the playbook's status detail.
Parameters
| Parameter | Description | Type | Required | Default |
|---|---|---|---|---|
| any | Any parameter to set | string or map | No | - |
Usage Examples
- Set string parameters
- name: set string
result:
a: b
c: d
The status in the playbook will show:
apiVersion: kubekey.kubesphere.io/v1
kind: Playbook
status:
detail:
a: b
c: d
phase: Succeeded
- Set map parameters
- name: set map
result:
a:
b: c
The status in the playbook will show:
apiVersion: kubekey.kubesphere.io/v1
kind: Playbook
status:
detail:
a:
b: c
phase: Succeeded
- Set multiple results
- name: set result1
result:
k1: v1
- name: set result2
result:
k2: v2
- name: set result3
result:
k2: v3
All results will be merged. If there are duplicate keys, the last set key will take precedence. The status in the playbook will show:
apiVersion: kubekey.kubesphere.io/v1
kind: Playbook
status:
detail:
k1: v1
k2: v3
phase: Succeeded