Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [test:vars]
- ansible_user=Username
- ansible_password=Password
- ansible_become_pass=Password
- [test]
- Manseau-E5 ansible_port=30005 ansible_host=67.53.178.51
- Manseau-E6 ansible_port=30006 ansible_host=67.53.178.51
- Manseau-E7 ansible_port=30006 ansible_host=67.53.178.51
- Manseau-E8 ansible_port=30006 ansible_host=67.53.178.51
- ---
- - hosts: icx
- #gather_facts: no
- vars:
- ansible_network_os: icx
- ansible_connection: network_cli
- ansible_become: True
- ansible_become_method: enable
- ansible_command_timeout: 60
- tasks:
- - name: Check for legacy AAA if found Change to modern AAA
- icx_config:
- lines:
- - radius-client coa host 52.39.117.1 key 2 $Zl5ucm5nUGlebi0=
- - radius-server host 52.41.63.155 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
- before:
- - no radius-client coa host 66.45.82.108 key 2 $Zl5ucm5nUGlebi0=
- - no radius-server host 69.48.211.170 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
- notify: "save icx"
- handlers:
- - name: save icx
- icx_command:
- commands:
- - command: "wr mem"
- ---
- - hosts: test
- #gather_facts: no
- vars:
- ansible_network_os: icx
- ansible_connection: network_cli
- ansible_become: True
- ansible_become_method: enable
- ansible_command_timeout: 60
- tasks:
- - name: Check for Legacy AAA
- icx_config:
- running_config: |
- radius-client coa host 66.45.82.108 key 2 $Zl5ucm5nUGlebi0=
- radius-server host 69.48.211.170 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
- lines:
- - radius-client coa host 52.39.117.1 key 2 $Zl5ucm5nUGlebi0=
- - radius-server host 52.41.63.155 auth-port 1812 acct-port 1813 default key 2 $Zl5ucm5nUGlebi0= dot1x mac-auth web-auth
- check_mode: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement