Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. [test:vars]
  2. ansible_user=Username
  3. ansible_password=Password
  4. ansible_become_pass=Password
  5.  
  6. [test]
  7. Manseau-E5 ansible_port=30005 ansible_host=67.53.178.51
  8. Manseau-E6 ansible_port=30006 ansible_host=67.53.178.51
  9. Manseau-E7 ansible_port=30006 ansible_host=67.53.178.51
  10. Manseau-E8 ansible_port=30006 ansible_host=67.53.178.51
  11.  
  12. ---
  13. - hosts: icx
  14. #gather_facts: no
  15. vars:
  16. ansible_network_os: icx
  17. ansible_connection: network_cli
  18. ansible_become: True
  19. ansible_become_method: enable
  20. ansible_command_timeout: 60
  21.  
  22. tasks:
  23. - name: Check for legacy AAA if found Change to modern AAA
  24. icx_config:
  25. lines:
  26. - radius-client coa host 52.39.117.1 key 2 $Zl5ucm5nUGlebi0=
  27. - radius-server host 52.41.63.155 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
  28. before:
  29. - no radius-client coa host 66.45.82.108 key 2 $Zl5ucm5nUGlebi0=
  30. - no radius-server host 69.48.211.170 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
  31. notify: "save icx"
  32.  
  33. handlers:
  34. - name: save icx
  35. icx_command:
  36. commands:
  37. - command: "wr mem"
  38.  
  39. ---
  40. - hosts: test
  41. #gather_facts: no
  42. vars:
  43. ansible_network_os: icx
  44. ansible_connection: network_cli
  45. ansible_become: True
  46. ansible_become_method: enable
  47. ansible_command_timeout: 60
  48.  
  49. tasks:
  50. - name: Check for Legacy AAA
  51. icx_config:
  52. running_config: |
  53. radius-client coa host 66.45.82.108 key 2 $Zl5ucm5nUGlebi0=
  54. radius-server host 69.48.211.170 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
  55. lines:
  56. - radius-client coa host 52.39.117.1 key 2 $Zl5ucm5nUGlebi0=
  57. - radius-server host 52.41.63.155 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
  58. check_mode: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement