How to set `ssh_user` and `ssh_key_file` in Ansible 2 Python API?

How do you set ssh_user and ssh_key_file when making a connection with the Ansible 2 Python API?

Adding user, ssh_user or remote_user to the options variable in the code on the Ansible 2 Python API documentation page all fail.

  • Neil