title: Can I override Ansible SSH key inventory variable ansible_ssh_private_key_file on command line?
body: <p>In Ansible 2.4.2.0, can I override the SSH key set in inventory with <code>ansible_ssh_private_key_file</code> on command line? It is not possible with <code>--private-key</code> option as reported on this issue: <a href="https://github.com/ansible/ansible/issues/11991" rel="noreferrer">Command-line flags (variable weight) not respected (bug or a feature?)</a></p>
  
  <p>The inventory file:</p>
  
  <pre><code>[group1]
  instance1   ansible_host=host1  ansible_user=user1  ansible_ssh_private_key_file=~/.ssh/user1host1-id_rsa
  </code></pre>
  
  <p>Command line:</p>
  
  <pre><code>ansible-playbook playbook1.yml --private-key=some_other-id_rsa
  </code></pre>