Ask Your Question
0

What is the way to include the parameter '--limit' in the play when using Ansible?

asked 2022-01-23 11:00:00 +0000

qstack gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-27 08:00:00 +0000

pufferfish gravatar image

To include the parameter '--limit' in the play when using Ansible, you can use the following syntax:

ansible-playbook playbook.yml --limit=myhost

This will limit the play to only run on the 'myhost' host. You can also specify a group of hosts using the group name instead of the host name. Additionally, you can use a comma-separated list of hosts or groups to limit the play to multiple targets.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-01-23 11:00:00 +0000

Seen: 8 times

Last updated: Oct 27 '21