Small house keeping changes - removed the save audit to file feature due to bad text output

This commit is contained in:
Vlad Raducanu
2022-05-08 19:52:51 +01:00
parent 94ab963e73
commit d146a063a0
6 changed files with 19 additions and 60 deletions
+4 -10
View File
@@ -19,14 +19,14 @@
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 }}"
- name: Collect interface, routing and IOX runtime information
- name: Collect interface, routing and device runtime information
ios_command:
commands:
- show ip interface brief
- show interface description
- show ip route
- show ip arp
- show iox
- show version
register: runtime_information
@@ -46,12 +46,6 @@
debug:
var: runtime_information.stdout_lines[3]
- name: Print IOx information
- name: Print device indormation
debug:
var: runtime_information.stdout_lines[4]
var: runtime_information.stdout_lines[4]
-29
View File
@@ -1,29 +0,0 @@
---
## Playbook for reading and printing device information
- name: Collect device facts and print formatted and unformatted information
hosts: baguleykit
gather_facts: false
connection: network_cli
roles:
- common
tasks:
- name: Collect device configuration
ios_facts:
gather_subset: all
register: current_config
- 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 }}"
- name: Print contents of current_config object
debug:
var: current_config
-19
View File
@@ -1,19 +0,0 @@
---
- name: Test playbook - reads and prints device info
hosts: baguleykit
gather_facts: false
connection: network_cli
roles:
- common
tasks:
- name: Run "show version" command on devices
ios_command:
commands: show version
register: output
- name: Print the output of "show version"
debug:
var: output.stdout_lines