community.general.campfire 模块 – 向 Campfire 发送消息

注意

此模块是 community.general 集合 (版本 10.1.0) 的一部分。

如果您使用的是 ansible 包,则可能已安装此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install community.general

要在 playbook 中使用它,请指定: community.general.campfire

概要

  • 向 Campfire 发送消息。

  • 包含换行符的消息将发送“粘贴”消息。

参数

参数

注释

msg

字符串 / 必填

消息正文。

notify

字符串

在发送消息前发送通知声音。

选项

  • "56k"

  • "bell"

  • "bezos"

  • "bueller"

  • "clowntown"

  • "cottoneyejoe"

  • "crickets"

  • "dadgummit"

  • "dangerzone"

  • "danielsan"

  • "deeper"

  • "drama"

  • "greatjob"

  • "greyjoy"

  • "guarantee"

  • "heygirl"

  • "horn"

  • "horror"

  • "inconceivable"

  • "live"

  • "loggins"

  • "makeitso"

  • "noooo"

  • "nyan"

  • "ohmy"

  • "ohyeah"

  • "pushit"

  • "rimshot"

  • "rollout"

  • "rumble"

  • "sax"

  • "secret"

  • "sexyback"

  • "story"

  • "tada"

  • "tmyk"

  • "trololo"

  • "trombone"

  • "unix"

  • "vuvuzela"

  • "what"

  • "whoomp"

  • "yeah"

  • "yodel"

room

字符串 / 必填

应将消息发送到的房间号。

subscription

字符串 / 必填

要使用的订阅名称。

token

字符串 / 必填

API 令牌。

属性

属性

支持

描述

check_mode

支持:不支持

可以在 check_mode 下运行,并在不修改目标的情况下返回更改状态预测。

diff_mode

支持:不支持

在差异模式下,将返回有关已更改内容(或可能需要在 check_mode 中更改的内容)的详细信息。

示例

- name: Send a message to Campfire
  community.general.campfire:
    subscription: foo
    token: 12345
    room: 123
    msg: Task completed.

- name: Send a message to Campfire
  community.general.campfire:
    subscription: foo
    token: 12345
    room: 123
    notify: loggins
    msg: Task completed ... with feeling.

作者

  • Adam Garside (@fabulops)