Skip to content

Question: How to define variables in the task template? #2862

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

Open
joaomarcos85 opened this issue Mar 29, 2025 · 2 comments
Open

Question: How to define variables in the task template? #2862

joaomarcos85 opened this issue Mar 29, 2025 · 2 comments
Assignees
Labels
Milestone

Comments

@joaomarcos85
Copy link

Question

I am currently trying to migrate from Ansible AWX to Semaphore. In Ansible AWX I have the option to define variables only for a template. How can I do this in Semaphore?

Below is a screenshot of how I do it in Ansible AWX:
Image

I found the option to create a Variable Groups in Semaphore, but I need to define the variables per template. If I am going to use Variable Groups I will need to create a Variable Group for each template.

Is there a simpler way to do this?

Related to

Ansible (task execution)

@fiftin
Copy link
Collaborator

fiftin commented Mar 31, 2025

Looks like a useful ability. But currently it is not possible. I think we will add this in 2.14 as part of this feature: #2612

@joaomarcos85
Copy link
Author

Looks like a useful ability. But currently it is not possible. I think we will add this in 2.14 as part of this feature: #2612

@fiftin I opened a new pull request to add this feature: #2872

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants