Passing Service dialog values to an Embedded Ansible Playbook method as part of an Automate State Machine

Use Case: I want to pass Service dialog values to an Ansible Playbook method as part of a Automate State Machine.

  • My playbook has 3 fields (user, pkg and sleep)

  • I built a dialog with 3 fields (user, pkg and sleep)

  • Dialog field names are param_user, param_pkg and param_sleep

  • For Service Provisioning, add these Input Parameters to your Ansible method:

  • For Vm Provisioning, add these Input Parameters to your Ansible method:

vm%20Provisioning%20state%20machine%20with%20ansible%20dialog

1 Like

Im new to CloudForms / ManageIQ, so thanks for the help in the first place.

I’ve got a couple of questions.

First, this method you are creating is an playbook?
Second, could you show me a screenshot of the playbook in question? So i’ve got an example to work off.
Third, How do i link my Playbook Method to the service dialog?
For example: TextboxA: user
That the content of textboxA gets used in my playbook?
This would help me alot.

I think this could be helpful:
https://manageiq.gitbook.io/mastering-cloudforms-automation-addendum/embedded_ansible