Replies: 1 comment
-
We got this to work by specifying the - name: "Site"
# FOLLOWING IS A HACK TO LET US TARGET A SPECIFIC HOST VIA WEBHOOK INTEGRATION
hosts: "{{ HOST_ALIAS | default('all') }}"
roles:
- "common" I also had to change the Integration Extract Value to curl -k -X POST \
-H "Content-Type: application/json" \
https://semaphore.local/api/integrations/ALIAS \
-d "{\"host\":\"$(hostname -s)*\"}" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm tying to setup an integration alias such that I can append
?host=foobar
to my URL and have that run a task template with it limited tofoobar
. But, I can't figure out how to reference my ExtractValue variable in my task template.In my integration I have the following for my Extract Value settings:
host
HOST_ALIAS
The field for source of the value is the main thing I'm uncertain of here, but think this is correct.
But I am totally unclear how to reference the variable
HOST_ALIAS
in my task template so that it limits to that variable..Beta Was this translation helpful? Give feedback.
All reactions