JNCIS-DevOps: Juniper Networks Certified Specialist – DevOps — Question 17
A customer has a control machine with a default Ansible installation. During execution of an Ansible module against a Junos device, the Ansible control machine generates the error. msg: unable to connect to router1.example.com: ConnectRefusedError (router1.example.com)
What is the cause for this error?
Answer options
- A. router1.example.com was not defined in /etc/hosts on the control machine
- B. Ansible cannot connect to the device through NETCONF
- C. router1.example.com was not defined in /etc/ansible/inventory/hosts on the control machine
- D. Ansible cannot authenticate to the device
Correct answer: B
Explanation
The correct answer is B because the error indicates that the connection attempt through NETCONF was unsuccessful. Option A is incorrect as the /etc/hosts file is not typically required for NETCONF connections, option C is wrong because the inventory file does not affect NETCONF connectivity directly, and option D is not valid since the error does not relate to authentication issues.