limit inventory #1089
-
I have all my hosts in a single hosts.ini file in my repository and I can use it in a task template. But I'd like to be able to easily run a task on a sub-set of hosts, using ansible-playbook's --limit option. Is there a way to use this option from Semaphore? Ideally you could create easy add a limit in a task template, or maybe be able to add a limit into an existing inventory. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It would also be helpful to allow a task to run against multiple inventory sources. ansible-playbook allows this with multiple |
Beta Was this translation helpful? Give feedback.
-
Yes - you can supply the limit inside the task or task-template JSON field: ["--limit", "host1,host2"] Also: I opened a specific feature-request for adding a Regarding multiple inventories - you could try to also supply them using the 'JSON' field as those variables seem to be directly passed to Ansible. |
Beta Was this translation helpful? Give feedback.
Yes - you can supply the limit inside the task or task-template JSON field:
Also: I opened a specific feature-request for adding a
--limit
field: #1357Regarding multiple inventories - you could try to also supply them using the 'JSON' field as those variables seem to be directly passed to Ansible.