semaphoreui / semaphore

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

Extra Variable in Semaphore GUI #927

Open tonyyu85 opened 2 years ago

tonyyu85 commented 2 years ago

Hi,

I have the following command which I can execute from the command line, do you know how I can translate the same to the Semaphore GUI? I try to do ["--extra-vars",'{"action":"restart"}'] but it does not work for me.

Ansible from the command line:

ansible-playbook -i environments/dev/inventory pmc_restart.yml --e '{"action":"restart"}'

Semaphore version: semaphore-2.8.53-1.x86_64

wdsff1 commented 2 years ago

Hi,

You can use an "environment". env_extra