ansibleforms icon indicating copy to clipboard operation
ansibleforms copied to clipboard

Submit button alternative functionality.

Open nikos445 opened this issue 1 year ago • 6 comments

Feature Request:

  • Add extra functionality/options for submit button.

Options / Functionality:

  • Trigger Webhooks instead of ansible playbook / awx / etc.

Example use case:

  • Trigger Jenkins Generic Webhook by executing POST HTTP request (http://example.com/test-url-path) and passing body in JSON format (extravars)

nikos445 avatar Feb 15 '24 09:02 nikos445

I already implemented with Webhook in ansible playbook that is saved internally to persistent volume :) but i thought that it would be a great feature to add in the ansible forms. It will enhance its ability to trigger ansible playbooks in jenkins not only AWX

nikos445 avatar Feb 15 '24 09:02 nikos445

Additionally, i found an issue that if you execute playbook locally, some extravars, are not passed. E.g. jobid

nikos445 avatar Feb 15 '24 09:02 nikos445

Additionally, i found an issue that if you execute playbook locally, some extravars, are not passed. E.g. jobid

Can you make that a separate thread ?

ansibleguy76 avatar Feb 15 '24 09:02 ansibleguy76

I already implemented with Webhook in ansible playbook that is saved internally to persistent volume :) but i thought that it would be a great feature to add in the ansible forms. It will enhance its ability to trigger ansible playbooks in jenkins not only AWX

i totally understand. So instead of ansible and awx, a custom endpoint, perhaps using fnRestAdvanced. Would not be a bad idea, let's reopen this.

ansibleguy76 avatar Feb 15 '24 09:02 ansibleguy76

Please also consider the ability to disable submit button if required fields are not fulfilled (not being able to click it instead of evaluating the fields and showing error)

nikos445 avatar Feb 16 '24 09:02 nikos445