0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AWXにおける通知内容

0
Last updated at Posted at 2026-03-11

teams(workflow / powerautomate) でメッセージをパースするためのメモ
Webhook.site をdocker でホストして、それに対するwebhook で確認。

開始メッセージのボディー

{
  "id": 5,
  "name": "Demo Job Template",
  "url": "https://towerhost/#/jobs/playbook/5",
  "created_by": "admin",
  "started": "2026-03-11T15:05:48.762079+00:00",
  "finished": null,
  "status": "running",
  "traceback": "",
  "inventory": "Demo Inventory",
  "project": "Demo Project",
  "playbook": "hello_world.yml",
  "credential": "Demo Credential",
  "limit": "",
  "extra_vars": "{}",
  "hosts": {}
}

成功メッセージボディー

{
  "id": 5,
  "name": "Demo Job Template",
  "url": "https://towerhost/#/jobs/playbook/5",
  "created_by": "admin",
  "started": "2026-03-11T15:05:48.762079+00:00",
  "finished": "2026-03-11T15:05:53.156011+00:00",
  "status": "successful",
  "traceback": "",
  "inventory": "Demo Inventory",
  "project": "Demo Project",
  "playbook": "hello_world.yml",
  "credential": "Demo Credential",
  "limit": "",
  "extra_vars": "{}",
  "hosts": {
    "localhost": {
      "failed": false,
      "changed": 0,
      "dark": 0,
      "failures": 0,
      "ok": 2,
      "processed": 1,
      "skipped": 0,
      "rescued": 0,
      "ignored": 0
    }
  }
}

エラーメッセージボディー

{
  "id": 6,
  "name": "Demo Job Template",
  "url": "https://towerhost/#/jobs/playbook/6",
  "created_by": "admin",
  "started": "2026-03-11T15:08:23.018005+00:00",
  "finished": "2026-03-11T15:08:39.793065+00:00",
  "status": "failed",
  "traceback": "",
  "inventory": "Demo Inventory",
  "project": "Demo Project",
  "playbook": "hello_world.yml",
  "credential": "Demo Credential",
  "limit": "",
  "extra_vars": "{}",
  "hosts": {
    "localhost": {
      "failed": true,
      "changed": 0,
      "dark": 1,
      "failures": 0,
      "ok": 0,
      "processed": 1,
      "skipped": 0,
      "rescued": 0,
      "ignored": 0
    }
  }
}

メッセージ中の url は、AWX > 設定 > システム > その他のシステム設定 > サービスのベース URL
から編集可能。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?