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) |