Sha256: a6b091855bec0d8e160be681a13dce2abd6e792bcfab09d5d78a589133951eb1

Contents?: true

Size: 529 Bytes

Versions: 22

Compression:

Stored size: 529 Bytes

Contents

<%#
name: Ansible Tower - Host in Inventory
description: Create/update a host with associated inventory in Ansible Tower.
snippet: false
model: WebhookTemplate
-%>
<%#
  Create URL: https://tower/api/v2/hosts
  Update/Delete URL: https://tower/api/v2/hosts/$HOST_ID
-%>
<%=
  payload({
    "name": @object.name,
    "description": "Created via Foreman Webhook",
    "inventory": @object.host_param('ansible_tower_inventory_id') || 1,
    "enabled": true,
    "instance_id": "",
    "variables": ""
  }, with_defaults: false)
-%>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.2.3 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.2.2 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.1.1 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.2.1 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.2.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.1.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.0.5 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-2.0.3 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.0.4 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-2.0.2 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.0.3 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.0.2 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.0.1 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-2.0.1 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-3.0.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-2.0.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-1.1.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-1.0.0 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb
foreman_webhooks-0.0.3 app/views/foreman_webhooks/webhook_templates/ansible_tower_-_host_in_inventory.erb