Refer to the exhibit. An engineer is configuring Ansible to run playbooks against Cisco IOS XE Software. What should be configured in ansible.cfg as the connection type?
The correct answer is A.
cat /etc/ansible/hosts
[ios-xe:vars]
ansible_network_os=ios
ansible_connection=network_cli
https://developer.cisco.com/docs/ios-xe/#!ansible-quick-start-guide/authentication
The following variables are common for all platforms in the inventory, though they can be overwritten for a particular inventory group or host.
ansible_connection
Ansible uses the ansible-connection setting to determine how to connect to a remote device. When working with Ansible Networking, set this to an appropriate network connection option, such as``ansible.netcommon.network_cli``, so Ansible treats the remote node as a network device with a limited execution environment. Without this setting, Ansible would attempt to use ssh to connect to the remote and execute the Python script on the network device, which would fail because Python generally isn’t available on network devices.
https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html
Regarding the following, I will select A as the correct answer.
https://docs.ansible.com/ansible/latest/network/user_guide/platform_ios.html#connections-available
I think is A, network_cli is the only correct option for the ansible_connection variable.
https://docs.ansible.com/ansible/latest/network/getting_starte/network_differences.html
network_cli is used for secure connectivity to network devices. SSH is intended to connect to servers. https://yetiops.net/posts/ansible-for-networking-part-3-cisco-ios/
Your right with A.
Ansible uses the ansible-connection setting to determine how to connect to a remote device. When working with Ansible Networking, set this to an appropriate network connection option, such as``ansible.netcommon.network_cli``, so Ansible treats the remote node as a network device with a limited execution environment. Without this setting, Ansible would attempt to use ssh to connect to the remote and execute the Python script on the network device, which would fail because Python generally isn’t available on network devices.
upvoted 2 times
...
...
This section is not available anymore. Please use the main Exam Page.350-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
anon1
Highly Voted 1 year, 8 months agoTeringzooi
Most Recent 7 months, 3 weeks agodesignated
8 months, 2 weeks agoQuiShong
11 months, 1 week agoferock
1 year agodexilec82
1 year, 3 months agoudo2020
1 year, 4 months agocj_kuo
1 year, 5 months agom0nking
1 year, 5 months agodigix
1 year, 5 months agotommiy
1 year, 8 months agolente_kriebels
1 year, 8 months agolente_kriebels
1 year, 8 months ago