-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved htmlreport.png to images, cleaned up playbooks and README.md
- Loading branch information
1 parent
476fff7
commit 447c36b
Showing
6 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
--- | ||
- name: build IOS XE inventory | ||
- name: build IOS inventory report | ||
hosts: ios | ||
connection: network_cli | ||
gather_facts: False | ||
|
||
vars: | ||
desired_ios_version: "16.06.01" | ||
file_path: /var/www/html/inventory_report_ios.html | ||
|
||
tasks: | ||
|
||
- name: gathering IOS XE facts | ||
- name: gathering IOS facts | ||
ios_facts: | ||
register: all_facts | ||
|
||
- name: create HTML report | ||
template: | ||
src: report-ios.j2 | ||
dest: /var/www/html/inventory_report_ios.html | ||
dest: "{{ file_path }}" | ||
delegate_to: localhost | ||
run_once: true | ||
# provider: "{{login_info}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
--- | ||
- hosts: cisco | ||
- name: build NXOS inventory report | ||
hosts: nxos | ||
connection: network_cli | ||
gather_facts: False | ||
|
||
vars: | ||
desired_version: "7.0(3)I7(1)" | ||
file_path: /var/www/html/generated_report.html | ||
|
||
tasks: | ||
- name: gathering nxos facts | ||
nxos_facts: | ||
provider: "{{login_info}}" | ||
register: all_facts | ||
|
||
# - debug: | ||
# var: all_facts | ||
|
||
- name: create HTML report | ||
template: | ||
src: report.j2 | ||
dest: /var/www/html/generated_report.html | ||
dest: "{{ file_path }}" | ||
delegate_to: localhost | ||
run_once: true |