-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Problem: CLI Arg in task only in JSON format #2367
Comments
You are right. Looks like new args UI works not as expected :) |
Wanted to add the following : When adding multiple limit of the scope (with proper JSON format), it gives the following error : 9:51:06 AM JSON format used : ["-l", "benchtest","benchtest2"] |
i tried limiting host by ["-l", "host"] but getting error ERROR! the playbook: ["-l", "host"] could not be found |
Don't use the JSON format, just input the -l host.
Best,
…On Fri, Nov 1, 2024, 5:44 a.m. kingp0dd ***@***.***> wrote:
i tried limiting host by
["-l", "host"]
but getting error
ERROR! the playbook: ["-l", "host"] could not be found
—
Reply to this email directly, view it on GitHub
<#2367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7DTQ5SJZHUKRGEXIFYDNZDZ6NEPFAVCNFSM6AAAAABO7XLPY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGYYDEMRRG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
that worked thank you
On Fri, Nov 1, 2024 at 7:38 PM Tristan Theroux ***@***.***>
wrote:
… Don't use the JSON format, just input the -l host. <br> <br> Best,
<br> <br> On Fri, Nov 1, 2024, 5:44 a.m. kingp0dd ***@***.***> wrote:
<br> <br> > i tried limiting host by <br> > <br> >
["-l", "host"] <br> > <br> > but getting error
<br> > <br> > ERROR! the playbook: ["-l", "host"]
could not be found <br> > <br> > — <br> > Reply to this email
directly, view it on GitHub <br> > <
#2367 (comment)>,
<br> > or unsubscribe <br> > <
https://github.com/notifications/unsubscribe-auth/A7DTQ5SJZHUKRGEXIFYDNZDZ6NEPFAVCNFSM6AAAAABO7XLPY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGYYDEMRRG4>
<br> > . <br> > You are receiving this because you were
mentioned.Message ID: <br> > ***@***.***> <br> > <br>
—
Reply to this email directly, view it on GitHub
<#2367 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACGD6KWGON54WYQ5KOLVTM3Z6NR2TAVCNFSM6AAAAABO7XLPY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRG4ZTMOBRGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Issue
It would be great to not have to write in JSON the CLI args when running a task.
Currently to limit an Ansible playbooK I need to do :
But if I add the arg in the task template, it works without being in JSON format :
The goal would be to be able to limit the scope of an ansible playbook easily like in CLI without having to format in JSON every time.
Impact
Web-Frontend (what users interact with), Ansible (task execution), Configuration
Installation method
Package
Database
MySQL
Browser
Chrome
Semaphore Version
2.10.22-e44910d-1721658299
Ansible Version
Logs & errors
No response
Manual installation - system information
.''lkkko' ckkkx. Cursor: Adwaita
'xkkkd:kkd. .. ;' :kkxo. Terminal: /dev/pts/0
,xkkkd;kk' ,d; ld. ':dkd::cc, CPU: Intel(R) Xeon(R) Silver 4216 (z
.,,.;xkko'.';lxo. dx, :kkk'xkkkkc GPU: VMware SVGA II Adapter
'dkkkkkxo:. ;kx .kkk:;xkkd. Memory: 932.52 MiB / 15.34 GiB (6%)
..... .;dk:. lkk. :;, Swap: 0 B / 32.00 GiB (0%)
:kkkkkkkdoxkkx Disk (/): 7.35 GiB / 85.95 GiB (9%)s
,c,,;;;:xkkd. Local IP (ens33): 192.168.3.18/22
;kkkkl... Locale: en_CA.UTF-8
;kkkkl
,od;
Configuration
Inventory / task scope limitation.
Additional information
No response
The text was updated successfully, but these errors were encountered: