Advertisement
Guest User

Untitled

a guest
Dec 12th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. - hosts: csr2_esxi
  2. gather_facts: no
  3.  
  4. vars:
  5. ansible_connection: network_cli
  6. ansible_network_os: ios
  7. ansible_user: benny
  8. ansible_ssh_pass: <removed>
  9.  
  10. tasks:
  11. - name: Set Hostname
  12. ios_config:
  13. lines:
  14. - hostname <removed>
  15. - name: Set management ACL
  16. ios_config:
  17. lines:
  18. - permit host 73.102.<removed>.<removed>
  19. - remark BDP_CMB_PNT_WAN
  20. - permit host 208.88.<removed>.<removed>
  21. - remark BDP_DIV_WAN1
  22. - permit host 208.88.<removed>.<removed>
  23. - remark BDP_DIV_WAN2
  24. - permit 10.0.1.0 0.0.0.255
  25. - remark BDP_DIV_LAN1
  26. - permit 10.0.16.0 0.0.0.255
  27. - remark BDP_DIV_LAN2
  28. - permit 10.0.2.128 0.0.0.127
  29. - remark BDP_CMB_PNT_LAN
  30. - permit 172.30.101.0 0.0.0.255
  31. - remark VPN_SUBNET
  32. parents:
  33. - ip access-list standard MGMT_ACL_VTY
  34. - name: Set housekeeping tasks
  35. ios_config:
  36. lines:
  37. - login delay 5
  38. - login on-failure log
  39. - login on-success log
  40. - login block-for 120 attempts 5 within 30
  41. - login quiet-mode access-class MGMT_ACL_VTY
  42. - logging buffered 16384 informational
  43. - name: CoPP ACL
  44. ios_config:
  45. lines:
  46. - permit udp any any eq snmp
  47. - permit tcp any any eq 22
  48. parents:
  49. ip access-list extended LIMIT_ACL
  50. - name: CoPP Class Map
  51. ios_config:
  52. lines:
  53. - match access-group name LIMIT_ACL
  54. parents:
  55. - class-map match-any LIMIT_CLASS
  56. - name: CoPP Policy Map
  57. ios_config:
  58. lines:
  59. - conform-action transmit
  60. - exceed-action drop
  61. parents:
  62. - policy-map LIMIT_POLICY
  63. - class LIMIT_CLASS
  64. - police rate 2048000
  65. - name: Apply Policy Map
  66. ios_config:
  67. lines:
  68. - service-policy input LIMIT_POLICY
  69. parents:
  70. - control-plane
  71. - name: Configure VTY lines
  72. ios_config:
  73. lines:
  74. - access-class MGMT_ACL_VTY in
  75. parents:
  76. - line vty 0 4
  77. - name: SNMPv3 Configurations
  78. ios_config:
  79. lines:
  80. - snmp-server group <removed> v3 priv
  81. - snmp-server user <removed> <removed> v3 auth sha <removed> priv aes 128 <removed>
  82. - snmp-server host 10.0.1.108 traps version 3 priv <removed>
  83. - snmp-server location <removed>
  84. - name: IKEv2 Proposal
  85. ios_config:
  86. lines:
  87. - encryption aes-cbc-256
  88. - integrity sha256
  89. - group 19
  90. parents:
  91. - crypto ikev2 proposal ikev2_proposal_dmvpn
  92. - name: IKEv2 Policy
  93. ios_config:
  94. lines:
  95. - proposal ikev2_proposal_dmvpn
  96. parents:
  97. - crypto ikev2 policy ikev2_policy_dmvpn
  98. - name: IKEv2 Keyring
  99. ios_config:
  100. lines:
  101. - address 0.0.0.0 0.0.0.0
  102. - pre-shared-key <removed>
  103. parents:
  104. - crypto ikev2 keyring ikev2_keyring_dmvpn
  105. - peer dmvpn
  106. - name: IKEv2 Profile
  107. ios_config:
  108. lines:
  109. - match identity remote any
  110. - authentication remote pre-share
  111. - authentication local pre-share
  112. - keyring local ikev2_keyring_dmvpn
  113. parents:
  114. - crypto ikev2 profile ikev2_profile_dmvpn
  115. - name: IPsec Profile
  116. ios_config:
  117. lines:
  118. - set pfs group19
  119. - set ikev2-profile ikev2_profile_dmvpn
  120. parents:
  121. - crypto ipsec profile ipsec_ikev2_dmvpn
  122. - name:
  123. ios_config:
  124. lines:
  125. - network 10.0.0.0 0.255.255.255
  126. - network 172.16.0.0 0.15.255.255
  127. - network 192.168.0.0 0.0.255.255
  128. parents:
  129. - router eigrp <removed>_EIGRP
  130. - address-family ipv4 unicast autonomous-system <removed>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement