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

The parameter h is not applied in Playbook mode #33

Open
slefol opened this issue Nov 20, 2020 · 0 comments
Open

The parameter h is not applied in Playbook mode #33

slefol opened this issue Nov 20, 2020 · 0 comments

Comments

@slefol
Copy link

slefol commented Nov 20, 2020

In playbook mode, the playbook is executed for all hosts defined in the playbook file (hosts parameter) instead of the devices defined by h parameter.

In controller.py (line 169), ansible_runner.interface.run() is call with host_pattern param
except :
:param host_pattern: The host pattern to match when running in ad-hoc mode.

host_pattern should not be used in playbook mode. you should use limit parameter instead:
:param limit: Matches ansible's --limit parameter to further constrain the inventory to be used

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

No branches or pull requests

1 participant