Skip to content

Commit

Permalink
adding hosts file and updating source inventory to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Ruch committed Jan 7, 2025
1 parent 51cfdb2 commit b658a51
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 2 deletions.
51 changes: 51 additions & 0 deletions network/hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[ios]
sandbox-iosxe-latest-1.cisco.com

[ios:vars]
ansible_connection=ansible.netcommon.network_cli
ansible_network_os=ios
; ansible_network_os=cisco.ios.ios
ansible_password=C1sco12345
ansible_ssh_password=C1sco12345
ansible_port=22
ansible_user=admin

[iosxr]
sandbox-iosxr-1.cisco.com

[iosxr:vars]
ansible_connection=ansible.netcommon.network_cli
ansible_network_os=iosxr
; ansible_network_os=cisco.iosxr.iosxr
ansible_password=C1sco12345
ansible_ssh_pass=C1sco12345
ansible_port=22
ansible_user=admin

[nxos]
sbx-nxos-mgmt.cisco.com
sandbox-nxos-1.cisco.com

[nxos:vars]
# ansible_connection=ansible.netcommon.httpapi
# ansible_httpapi_use_ssl='yes'
# ansible_httpapi_validate_certs='no'
# ansible_port=443
ansible_network_os=nxos
#ansible_network_os=cisco.nxos.nxos
ansible_password=Admin_1234!
ansible_ssh_pass=Admin_1234!
ansible_port=22
ansible_user=admin

[routers]
sbx-nxos-mgmt.cisco.com
sandbox-nxos-1.cisco.com
sandbox-iosxr-1.cisco.com
sandbox-iosxe-latest-1.cisco.com

[routers:vars]
ansible_connection=ansible.netcommon.network_cli

[webservers]
reports ansible_host=ec2-18-118-189-162.us-east-2.compute.amazonaws.com ansible_user=ec2-user
12 changes: 10 additions & 2 deletions network/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@ controller_inventory_sources:
source: scm
inventory: Demo Inventory
overwrite: true
source_project: Network Golden Configs
source_path: hosts
source_project: Ansible Product Demos
source_path: network/hosts

# controller_inventory_sources:
# - name: DevNet always-on sandboxes
# source: scm
# inventory: Demo Inventory
# overwrite: true
# source_project: Network Golden Configs
# source_path: hosts

controller_templates:
- name: NETWORK / Configuration
Expand Down

0 comments on commit b658a51

Please sign in to comment.