semaphoreui / semaphore

Modern UI and powerful API for Ansible, Terraform, OpenTofu, PowerShell and other DevOps tools.
https://semaphoreui.com
MIT License
10.61k stars 1.07k forks source link

No Default Values for Survey Variables in Scheduled Tasks #2244

Open lmrlyv opened 3 months ago

lmrlyv commented 3 months ago

Discussed in https://github.com/semaphoreui/semaphore/discussions/2226

Originally posted by **lmrlyv** July 23, 2024 I use **Survey Variables** in the Task Template to set values for the variables defined in the _vars_prompt_ section of the playbook. This works fine when I manually trigger the task and enter the values by hand. However, I haven't found a way to set these variables when the task template is scheduled to run automatically. Is there currently a way to achieve this? If not, wouldn't it be better to allow defining default values when creating a schedule?
danisct commented 2 months ago

Hi, any suggestions about what @lmrlyv asked? I have pretty the same problem. Almost all my task templates use any survey variables, for example to indicate the host(s), and I have no way to use them using Schedule option. Thanks!