title: Ansible playbook won't match the inventory host file
body: <p>Appreciate if someone could help to find-out why ansible play book not get parent inventory list as i mentioned in site.yml.<br>
  provide below message when i executing it. </p>
  
  <blockquote>
    <blockquote>
      <p>[DEPRECATION WARNING]: The TRANSFORM_INVALID_GROUP_CHARS settings is set to allow bad characters in group names by default, this  will
      change, but still be user configurable on deprecation. This feature
      will be removed in version 2.10. Deprecation warnings can be disabled
      by setting deprecation_warnings=False in ansible.cfg. [WARNING]:
      Invalid characters were found in group names but not replaced, use
      -vvvv to see details</p>
    </blockquote>
    
    <p>[WARNING]:  * Failed to parse
    /home/devopstest/Ansible_Execution/ansible/verification_setup/hosts
    with yaml plugin: Syntax Error while loading YAML.   did not find
    expected   The error appears to be in
    '/home/devopstest/Ansible_Execution/ansible/verification_setup/hosts':
    line 6, column 1, but may be elsewhere in the file depending on the
    exact syntax problem.  The offending line appears to be:  [PDC-MGM01]
    172.25.70.181 ^ here</p>
    
    <p>[WARNING]:  * Failed to parse
    /home/devopstest/Ansible_Execution/ansible/verification_setup/hosts
    with ini plugin:
    /home/devopstest/Ansible_Execution/ansible/verification_setup/hosts:42:
    Expected group name, got: PDC-NORA0[1:2]</p>
    
    <p>[WARNING]: Unable to parse
    /home/devopstest/Ansible_Execution/ansible/verification_setup/hosts as
    an inventory source</p>
    
    <p>[WARNING]: No inventory was parsed, only implicit localhost is
    available</p>
    
    <p>[WARNING]: provided hosts list is empty, only localhost is available.
    Note that the implicit localhost does not match 'all'</p>
    
    <p>/usr/lib/python2.7/site-packages/requests/<strong>init</strong>.py:91:
    RequestsDependencyWarning: urllib3 (1.23) or chardet (2.2.1) doesn't
    match a supported version!   RequestsDependencyWarning) [WARNING]:
    Could not match supplied host pattern, ignoring: environment</p>
    
    <p>PLAY [Configuring Database]
    ***************************************************************************************************** skipping: no hosts matched</p>
    
    <p>PLAY RECAP</p>
    
    <hr>
  </blockquote>
  
  <p>host file</p>
  
  <pre><code>#[database]
  #172.25.43.180
  
  
  [PDC-MGM01]
  172.25.70.181
  
  [PDC-MGMT02]
  172.25.70.181
  
  [PDC-NORA01]
  172.25.70.181
  
  [PDC-NORA02]
  172.25.70.181
  
  [PDC-ONLN01]
  172.25.70.160
  
  [PDC-ONLN02]
  172.25.70.184
  
  [PDC-NORA99]
  172.25.70.181
  
  [SDC-NORA01]
  172.25.70.181
  
  [SDC-NORA02]
  172.25.70.181
  
  [SDC-ONLN01]
  172.25.70.160
  
  [SDC-ONLN02]
  172.25.70.184
  
  [SDC-NORA99]
  172.25.70.181
  
  [NORA:children]
  PDC-NORA0[1:2]
  SDC-NORA0[1:2]
  PDC-NORA99
  SDC-NORA99
  
  [ONL:children]
  PDC-ONLN0[1:2]
  SDC-ONLN0[1:2]
  
  [PDC:children]
  PDC-MGM0[1:2]
  PDC-NORA0[1:2]
  PDC-ONLN0[1:2]
  PDC-NORA99
  
  
  [SDC:children]
  SDC-NORA0[1:2]
  SDC-ONLN0[1:2]
  SDC-NORA99
  
  [environment:children]
  PDC
  SDC
  </code></pre>
  
  <p>site.yml file</p>
  
  <pre><code>- name: Configuring Database
    hosts: environment
    remote_user: "{{ env_user }}"
    roles:
      - database-configure
  </code></pre>