diff --git a/ios_devices/device_audit.yml b/ios_devices/device_audit.yml index e9733a3..6ea15a3 100644 --- a/ios_devices/device_audit.yml +++ b/ios_devices/device_audit.yml @@ -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 }}" diff --git a/ios_devices/CSR_basic_provisioning.yml b/ios_devices/device_provisioning.yml similarity index 81% rename from ios_devices/CSR_basic_provisioning.yml rename to ios_devices/device_provisioning.yml index a4219d5..b5600f4 100644 --- a/ios_devices/CSR_basic_provisioning.yml +++ b/ios_devices/device_provisioning.yml @@ -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 \ No newline at end of file + save_when: modified diff --git a/ios_devices/inventory.yml b/ios_devices/inventory.yml index dcbc277..41a96ce 100644 --- a/ios_devices/inventory.yml +++ b/ios_devices/inventory.yml @@ -1,7 +1,7 @@ baguleykit: hosts: - 172.16.1.175: + 10.11.245.1: homekit: hosts: - 192.168.1.60: \ No newline at end of file + 192.168.1.60: