Host specific tasks: on() and select() in YAML? #3785
Answered
by
wivaku
wivaku
asked this question in
Help needed
-
I can use on() and select() to run specific tasks on specific hosts. Can I configure tasks like that in a YAML based setup? |
Beta Was this translation helpful? Give feedback.
Answered by
wivaku
Mar 1, 2024
Replies: 1 comment
-
While checking the JSON Schema, I noticed So e.g.
The schema lists as possible properties:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
wivaku
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While checking the JSON Schema, I noticed
select
is available. But it expects a string, which based on my test expects a single hostname (as opposed to the PHP version where you provide a filter, e.g.$hosts = select('type=web,env=prod');
)So e.g.
The schema lists as possible properties:
cd
,run
,run_locally
,desc
upload
,download
once
,hidden
limit