title: Ansible wildcard condition
body: <p>I am using <code>ansible</code> version <code>1.6.6</code>. My remote server <code>CentOs 6.4 minimal</code>. On remote server, <code>Python 2.6.6</code> is installed. So I want to install <code>2.7.*</code> on remote server. </p>
  
  <p>I have to upgrade it to <code>2.7.*</code>. I found a tutorial to install it. It is on right here <a href="http://developerblog.redhat.com/2013/02/14/setting-up-django-and-python-2-7-on-red-hat-enterprise-6-the-easy-way/" rel="nofollow">Python2.7 Installation on Centos via yum</a></p>
  
  <p>My some other remote servers might be ubuntu or another Centos which is already installed <code>Python version 2.7.*</code>. So this must be conditional. But I don't know what python 2.7 version is really gonna be installed. It might be <code>2.7.3</code>, <code>2.7.4</code> or later. I have to use some wildcard condition like;</p>
  
  <pre><code>- name: Check python version
    command: python -V
    register: python_version
  
  - debug: var=python_version.stderr
  - name: Install Python2.7
    ......
    when: (ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux') and python_version.stderr != 2.7.*
  </code></pre>
  
  <p>Is there a way to use wildcard condition for such situation?</p>