Approval Points

When you want to pause a job and ask for approval first. You can insert an approval point using the approval-object attributes

Attributes

Attribute Comments
title
string / required

Approval message title
Free text with placeholders

The approval point consists out of a title and message. This is the title attribute.
Note: This supports placeholders (the placeholders point to extravars)

message
string / required

Approval message
Free text with placeholders

The approval point consists out of a title and message. This is the message attribute.
Note: This supports placeholders (the placeholders point to extravars)

roles
array / required

The approver roles
a valid role

Every role in this list will have the power to approve or reject this job.

notifications
array / required

The approval recipients
a valid email address

Every email-address in this list will receive the approval message by email with the approval link.

Examples

1) Remove host

approval:
  title: Remove host $(vm.name) ?
  message: |
    You are about to remove vm $(vm.name).<br>
    Esx server : $(cluster.esxhost.name)<br>
    Status : $(vm.status)<br>
    Change request : $(cr.id)
  roles:
  - approvers
  - vmwareadmin
  notifications:
  - vmware@domain.local
  - approvers@domain.local      


Copyright © 2023-2026 AnsibleForms. All rights reserved.