Skip to content

Instantly share code, notes, and snippets.

@Qalthos
Last active November 21, 2017 15:55
Show Gist options
  • Save Qalthos/c4bdfaf62bfdc9ec638a598c1972bc44 to your computer and use it in GitHub Desktop.
Save Qalthos/c4bdfaf62bfdc9ec638a598c1972bc44 to your computer and use it in GitHub Desktop.

With connection: network_cli, the provider dictionary is no longer necessary. Here is a quick rundown of provider keys and their variable and commandline equivalents

provider inventory variable commandline
host ansible_host N/A
port ansible_port N/A
username ansible_user --user (-u)
password ansible_ssh_pass --ask-pass (-k)
ssh_keyfile ansible_ssh_private_key_file --private-key
authorize become --become (-b)
auth_pass become_pass --ask-become-pass (-K)
transport N/A (transport: cli implied by network_cli)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment