How to get task id
#2275
-
Hello, I trigger semaphore with a webhook unfortunately i am not able to use the response. thanks |
Beta Was this translation helpful? Give feedback.
Answered by
sebaboben
Nov 20, 2024
Replies: 1 comment 2 replies
-
Is there really no posibility to get the Task ID as a variable inside the playbook? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running a playbook with the verbose tag I found this line:
extra_vars: ('{"semaphore_vars":{"task_details":{"id":308,"url":null,"username":"admin"}}}', 'rbose')
This shows some useful variables such as the task ID. So if you need to fetch it from it's respective playbook run you just need to use a task like this one.