qiyutech.core.view_log module – 查看日志的命令

备注

This module is part of the qiyutech.core 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.core.

To use it in a playbook, specify: qiyutech.core.view_log.

1.0.0 新版功能: of qiyutech.core

Synopsis

  • 查看日志的命令

备注

This module has a corresponding action plugin.

Parameters

Parameter

Comments

message_id

string

消息标识

消息标志, journald 中的 MESSAGE_ID, 用户所有的上下文

通过获取:

  • qiyu_log_message_id 变量 * QIYU_LOG_MESSAGE_ID 环境变量

如果都没则会自动创建 一个新的 MESSAGE_ID 并 使用 set_facts 复制给 qiyu_log_message_id

Examples

- name: 查看日志命令
  qiyutech.core.view_log:
    message_id: xxx

Authors

  • dev