Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semaphore UI support #243

Open
GD-Dal opened this issue Dec 8, 2024 · 4 comments
Open

Semaphore UI support #243

GD-Dal opened this issue Dec 8, 2024 · 4 comments
Assignees
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@GD-Dal
Copy link

GD-Dal commented Dec 8, 2024

Hi.
Just discovered this.
It seems you have support for fetching data for Netbox, and integration towards Ansible AWX.
Any plans for support of Semaphore UI?

Thanks

@mirkovancolen
Copy link

And how would that work ? Is that a just sending the extravars to a rest api ? Don't know Semaphore UI (yet)

@GD-Dal
Copy link
Author

GD-Dal commented Dec 9, 2024

I am totally new to this really.
Don't know how it will work. How does it work against Ansible AWX?

Thanks for your time

@ansibleguy76 ansibleguy76 self-assigned this Dec 24, 2024
@ansibleguy76 ansibleguy76 added the enhancement New feature or request label Dec 24, 2024
@ansibleguy76
Copy link
Owner

The integration with AWX is a specific api.

I first need to authenticate (token are basic auth).
Then I need to do a couple of calls (inventory, template, ...) and finally call the launch api. It's not that straightforward to just add more targets.

A workaround for now, unless more requests come for this specific integration, would be to use the property "keepExtravars: true" in the form. Then you target a dummy local playbook. The extravars will be locally stored and NOT removed after the dummy playbook was run. This would allow you can to create a scheduled script that picks up the extravars and you can use them as you wish, for example send them in any way to any api. I understand it requires some custom scripting, but a least you have freedom to do it.

@ansibleguy76
Copy link
Owner

Additionally, I could implement a generic target with a javascript expression. like there is now "fn.fnRestBasic, or fn.fnRestAdvanced", where I send the extravars payload. You could then build your own rest api to catch this post. Note that AF allows to add your own javascript library which would allow you to create your own "fnc" function. This would become a duplicate issue. This has been asked before.

@ansibleguy76 ansibleguy76 added the duplicate This issue or pull request already exists label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants