title: Ansible: Include task only when server is not in group
body: <p>I have some groups with different names and something like "raw-webservers", "raw-db", ...
  Now I want to include a playbook if the server is in a group which begins with 'raw-*' (works) and include another playbook if the server is not in a group which begins with 'raw-'. I have not been able to figure out how to do the last thing by specifying only a subset of the group.</p>
  
  <pre><code>- include_tasks: change_password.yml
    when: "'raw-' not in group_names"   # works only with complete group names
  
  
  - include_tasks: change_password_raw.yml
    when: "group_names | search('raw-')"   # works
  </code></pre>
  
  <p>I've tried 'when: "group_names | not search('raw-')"' but it doesn't work.
  Any ideas?</p>