limit will ONLY create a subset of hosts, it will never ADD to the list of hosts to consider. What you need is to expand your inventory, which you can do with additional -i entries:
ansible-playbook myplay,yml -i hosts.yml -i 10.0.0.2,10.0.0.3, This adds 2 hosts to the inventory, but only to the 'all' and 'ungrouped' groups, you would need a custom inventory plugin to add them to specific groups. -- ---------- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7f2QPN0FCWZi5B_18R527hN7oR3dQd%2B3t7zucQWEAcp0Q%40mail.gmail.com.