Skip to content

Unexpected execution of all tasks despite target filtering #250

Answered by umputun
skar404 asked this question in Q&A
Discussion options

You must be logged in to vote

Tasks are not assigned to specific targets in the way you meant, i.e., it is not a matching filter. The documentation mentions what it does: see https://github.com/umputun/spot?tab=readme-ov-file#tasks-and-commands

targets - list of target names, groups, tags, or host addresses to execute the task on. The command line -t flag can be used to override this field. The targets field may include variables. For more details, see Dynamic targets section.

In a simple case, the usage for such targets included in tasks is to be able to run complex playbooks affecting different hosts in different ways. This is a practical example of such usage - some commands run on a master server, and some comma…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@umputun
Comment options

Answer selected by skar404
@skar404
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #249 on January 14, 2025 08:02.