community.general.github_issue 模块 – 查看 GitHub issue
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install community.general
。
要在 playbook 中使用它,请指定:community.general.github_issue
。
概要
查看给定存储库和组织的 GitHub issue。
参数
属性
示例
- name: Check if GitHub issue is closed or not
community.general.github_issue:
organization: ansible
repo: ansible
issue: 23642
action: get_status
register: r
- name: Take action depending upon issue status
ansible.builtin.debug:
msg: Do something when issue 23642 is open
when: r.issue_status == 'open'
返回值
常见的返回值已在 此处 记录,以下是此模块独有的字段