From 00bbc6c71424b29b947d245d2d0922780c75de16 Mon Sep 17 00:00:00 2001 From: Jason King Date: Thu, 12 Oct 2023 17:30:53 -0700 Subject: [PATCH] Fixes to update report (#35) --- galaxy.yml | 2 +- playbooks/nso_update_data.yml | 4 ++-- roles/nso/templates/update-report.yml.j2 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index c1e5256..be691d0 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -8,7 +8,7 @@ namespace: ciscops name: mdd # The version of the collection. Must be compatible with semantic versioning -version: 1.2.11 +version: 1.2.12 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md diff --git a/playbooks/nso_update_data.yml b/playbooks/nso_update_data.yml index 9910515..ab8b35a 100644 --- a/playbooks/nso_update_data.yml +++ b/playbooks/nso_update_data.yml @@ -57,14 +57,14 @@ tasks_from: update_rollback_list when: rollback_id is defined and rollback_id and netbox_available | default(false) -- name: Run update_report +- name: Run update report hosts: network connection: local gather_facts: no vars: dry_run: true tasks: - - name: Update OC Data + - name: Generate report include_role: name: ciscops.mdd.nso tasks_from: update_report diff --git a/roles/nso/templates/update-report.yml.j2 b/roles/nso/templates/update-report.yml.j2 index 5072a34..55365d2 100644 --- a/roles/nso/templates/update-report.yml.j2 +++ b/roles/nso/templates/update-report.yml.j2 @@ -22,5 +22,5 @@ consolidated_report: {% for entry in consolidated_report %} - hosts: "{{ entry.hosts }}" - data: '{{ entry.data }}' + data: "{{ entry.data }}" {% endfor %} \ No newline at end of file