qiyutech.message.table module – 显示表格信息给用户

备注

This module is part of the qiyutech.message collection (version 1.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install qiyutech.message.

To use it in a playbook, specify: qiyutech.message.table.

1.0.0 新版功能: of qiyutech.message

Synopsis

  • 这个模块不执行任何动作, 仅仅返回输入的参数

备注

This module has a corresponding action plugin.

Parameters

Parameter

Comments

caption

string

表格标题

header

list / elements=string

表格Header

这个字段 和 table 必须同时有值, 这个里面值是 table header 的值

kv

dictionary

简单KV

简单 KV 表格, 没有 header

table

list / elements=dictionary

表格数据

表格的详细数据

Notes

备注

  • 这个模块支持 Windows 系统

See Also

参见

qiyutech.message.xterm

The official documentation on the qiyutech.message.xterm module.

Examples

- name: 显示用户信息
  qiyutech.message.table:
    caption: '用户信息'
    kv:
      username: "{{ username }}"
      password: "{{ password }}"

- name: 显示表格信息
  qiyutech.message.table:
    caption: '数据'
    header:
    - 标题
    - 内容
    table:
    - 标题: 测试
      内容: 测试内容

Authors

  • dev