Skip to content

Instantly share code, notes, and snippets.

@vascoosx
Created January 5, 2017 15:06
Show Gist options
  • Save vascoosx/7730492b9120b90c0e3e998e8209db62 to your computer and use it in GitHub Desktop.
Save vascoosx/7730492b9120b90c0e3e998e8209db62 to your computer and use it in GitHub Desktop.
limit by multiple patterns
#!/usr/bin/env bash
ansible-playbook -i inventory playbooks/test_single.yml --limit '!*apattern*:!special:*anotherpattern' --list-hosts
@vascoosx
Copy link
Author

vascoosx commented Jan 5, 2017

! is for negation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment