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

add cmd option "only_on" allowing to limit on what host #88

Merged
merged 3 commits into from
May 13, 2023
Merged

Conversation

umputun
Copy link
Owner

@umputun umputun commented May 13, 2023

This adds a new option to the command allowing limit a particular command to run on a particular host(s). This is somewhat similar to #85 but works on the command level, and limits can be hostname or address. It also allows reverse the condition with ! prefix, meaning "only on other hosts".

Not something I would often use, as I'd rather make a separate task for such commands, but in some cases can be handy. For example, running a simplified playbook and wanting some command to initialize only one of the destination hosts in a special way

@umputun umputun merged commit c8f248b into master May 13, 2023
4 checks passed
@umputun umputun deleted the only_on branch May 13, 2023 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant