Write playbooks to satisfy the following requirements. Use a host group named poc_hosts for all tasks below.
Also after writing each playbook, please answer the following questions. Put the answers as comments on top of the file. A comment in yaml starts with #:
# How many times did you have to leave your VS Code environment to complete this task?
# List all the sources you used to complete this task.
# How long did it take to complete this task?- Name the playbook as
m_net_1.yml - Use a module to verify connectivity to a Cisco IOS device.
- Use the
pingmodule to accomplish this.
- Name the playbook as
m_net_2.yml - Collect Ansible facts about a Cisco IOS switch
- Collect only the interfaces' resource facts and no legacy facts
- Name the playbook as
m_net_3.yml - Configure BGP neighbors
- Use 199.0.99.10 & 64.5.2.15
- Use address family mode
- Name the playbook as
m_net_4.yml - Complete all tasks in the same playbook
- Shut down all non-management interfaces
- Check the status of the management VLAN
- Turn the non-management interfaces back on