CHanged some ansible modules due to them going obsolete in 2024
This commit is contained in:
parent
16be188fff
commit
0cfa584471
@ -15,6 +15,9 @@
|
||||
gather_subset: all
|
||||
register: current_config
|
||||
|
||||
- debug:
|
||||
msg: "ANSIBLE-{{ current_config.ansible_facts.ansible_net_model }}"
|
||||
|
||||
- name: Print device identity info
|
||||
debug:
|
||||
msg: "{{ current_config.ansible_facts.ansible_net_hostname }} is reachable and the OS is {{ current_config.ansible_facts.ansible_net_version }}. SN is {{ current_config.ansible_facts.ansible_net_serialnum }}. Model is {{current_config.ansible_facts.ansible_net_model }}"
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
## The only requirement is a working SSH connection to the device
|
||||
|
||||
- name: Configure essential features on IOS-XE device
|
||||
hosts: homekit
|
||||
hosts: baguleykit
|
||||
gather_facts: false
|
||||
connection: network_cli
|
||||
roles:
|
||||
@ -38,7 +38,7 @@
|
||||
text: |
|
||||
|--------------------------------------------------------------------------|
|
||||
|This device is managed, supported and it's configuration owned by the |
|
||||
|Virgin Media Business Data Services team in England |
|
||||
|Virgin Media Business Near Core Activations team in England |
|
||||
|--------------------------------------------------------------------------|
|
||||
state: present
|
||||
|
||||
@ -47,30 +47,36 @@
|
||||
banner: motd
|
||||
text: |
|
||||
|
||||
Welcome!
|
||||
Welcome to the Near Core Activations network infrastructure!
|
||||
|
||||
state: present
|
||||
|
||||
- name: Configuring NTP servers
|
||||
ios_ntp:
|
||||
server: 1.uk.pool.ntp.org
|
||||
logging: yes
|
||||
state: present
|
||||
cisco.ios.ios_ntp_global:
|
||||
config:
|
||||
logging: true
|
||||
servers:
|
||||
- server: uk.pool.ntp.org
|
||||
version: 2
|
||||
state: merged
|
||||
|
||||
- name: Configuring logging levels
|
||||
ios_logging:
|
||||
aggregate:
|
||||
- {dest: buffered, level: notifications, size: 10000}
|
||||
- {dest: console, level: debugging}
|
||||
state: present
|
||||
cisco.ios.ios_logging_global:
|
||||
config:
|
||||
buffered:
|
||||
severity: notifications
|
||||
size: 8096
|
||||
console:
|
||||
severity: errors
|
||||
state: merged
|
||||
|
||||
- name: Configuring hostname and domain settings
|
||||
ios_system:
|
||||
hostname: ThinkPad-CSRv
|
||||
domain_name: ThinkPad-CSRv.vladlab.local
|
||||
lookup_enabled: no
|
||||
hostname: "ANSIBLE-{{ current_config.ansible_facts.ansible_net_model }}"
|
||||
domain_name: siplab.net
|
||||
lookup_enabled: yes
|
||||
name_servers:
|
||||
- 192.168.1.1
|
||||
- 10.30.10.250
|
||||
- 8.8.8.8
|
||||
|
||||
- name: Configuring user account for automation jobs
|
||||
@ -103,4 +109,4 @@
|
||||
- aaa accounting commands 15 default start-stop logger
|
||||
- aaa accounting system default start-stop logger
|
||||
- aaa session-id common
|
||||
save_when: modified
|
||||
save_when: modified
|
||||
@ -1,7 +1,7 @@
|
||||
baguleykit:
|
||||
hosts:
|
||||
172.16.1.175:
|
||||
10.11.245.1:
|
||||
|
||||
homekit:
|
||||
hosts:
|
||||
192.168.1.60:
|
||||
192.168.1.60:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user