title: is there a way to define inventory with multiple pem file and inventory with different users
body: <p>I have defined the ips of web servers in /etc/ansible/hosts file</p>
  <pre><code> [web1]          
   server1
  
   [web2]
   server2
  </code></pre>
  <p>And i have defined the multiple pem path with multiple user in /etc/ansible/ansible.cfg</p>
  <pre><code>  [web1]
    inventory = ./hosts
    ansible_ssh_user=ubuntu
    ansible_ssh_private_key_file=/path/to/example1.pem 
    host_key_checking = False
    retry_files_enabled = False
  
  
  
    [web2]
    inventory = ./hosts
    ansible_ssh_user=ec2-user
    ansible_ssh_private_key_file=/path/to/example2.pem
    host_key_checking = False
    retry_files_enabled = False
  </code></pre>
  <p>Right now with above configuration it is giving me ssh permission denied. For some reason it is not reading the config file correctly</p>