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

Feature: Limit as own Task-Form Field #1357

Open
ansibleguy opened this issue Jul 21, 2023 · 8 comments
Open

Feature: Limit as own Task-Form Field #1357

ansibleguy opened this issue Jul 21, 2023 · 8 comments
Labels

Comments

@ansibleguy
Copy link
Contributor

ansibleguy commented Jul 21, 2023

Greetings!

--limit is a very commonly used flag that deserves its own form-field as the JSON block is not so 'nice' to work with (especially on a per-task basis)

Related to:

@fiftin
Copy link
Collaborator

fiftin commented Jul 22, 2023

Hi @ansibleguy Thank you!

@fiftin fiftin added the feature label Jul 22, 2023
@kyberorg
Copy link

Hi @ansibleguy , thanks for raising this issue. I personally, use --limit almost every run.

@ansibleguy
Copy link
Contributor Author

Possible Workaround for now: 'ansible_limit' via Survey vars

@stevmills
Copy link

@ansibleguy, concur strongly!

@craigarms
Copy link

I've noticed that the limit field has been created in the Database and API in this commit : 23c3947

So i guess Its just a matter of time before it gets introduced into the GUI

I'd like to have the ability on a template to say that limit is required or not in the same fashion as Survey Variables, this could help stop people from launching a playbook on all hosts at once,

Pushing this idea further would be to be able to put the limit in the template and at run time any limit passed would be additional.

I work with Netbox source inventories and for example would like the user that is allow to run the playbooks on only the dev env have the dev group "hardcoded" in the limit and any additional limit the user enters is for is run "confort"

@PierrickBrun
Copy link

I've added the field to the view in this commit: PierrickBrun@7a3a8c5

It worked without adding anything else since the field is already present in the API.

I made it to my own use so I made the field required but if you want to test it I created a release including the commit. https://github.com/PierrickBrun/semaphore/pkgs/container/semaphore

@papierkorp
Copy link

Is there a update on when the limit field is coming?

@r3nor
Copy link

r3nor commented Apr 24, 2024

I am also looking forward to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

8 participants