QuestionQ628

Infrastructure and Automation

Refer to the exhibit.

Question Image

What is the outcome of this Ansible playbook on an IOS router?

  • A A new running configuration is pushed to the IOS router.
  • B The start-up configuration of the IOS router is copied to a local folder.
  • C The current running configuration of the IOS router is backed up.
  • D A new start-up configuration is copied to the IOS router.
Explanation

The ios_command module runs show run and returns the command response in stdout. The playbook writes config.stdout[0] to a file in /etc/ansible/configs/ on the local control host, creating a backup of the router’s current running configuration. The module does not enter configuration mode or copy any configuration to the router.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!