Ansible

Target an intersection of host groups

Use ansible-playbook’s –limit flag

> ansible-playbook -i inv site.yml --limit 'dev:&db' ...
# By default ansible does a logical OR when you give
# it multiple host groups. :& uses AND instead

Links