Chapter 6 Network Reconnaissance
For diagrams, tables, or exact code formatting, .
ansible-playbook ios_facts.yml The playbook should execute and provide a dynamic status report showing its progress and when it is complete. The .json output files should be building dynamically as the play runs across the campus. When the file is complete be sure to check-in the output of the playbook.
Git add * Git commit –a Add meaningful commit message in VI editor. Save the file and quit VI editor.
ESC
:wq Use Git to push the commit into the remote repository. Git push Provide the Microsoft TFS credentials (typically the regular Active Directory password / Windows password).
Using VS Code browse to the folder with the .json files to review the output. Using TFS browse the branch and see the output in the browser.
When satisfied with the output and everything is working, submit a pull request, perform the change management process, and merge the first Ansible playbook, and output, into TFS. Move the work item to completed.
To wrap things up with the ios_facts module here are the unique returned values for this module:
Key Returned Description ansible_net_all_ipv4_addresses list
When interfaces is configured All IPv4 addresses configured on the device
ansible_net_all_ipv6_addresses list
When interfaces is configured All IPv6 addresses configured on the device
ansible_net_config string
When config is configured The current active configuration from the device
ansible_net_filesystems list
When hardware is configured All file system names available on the device
ansible_net_gather_subset list
Always The list of fact subsets collected from the device
