From 608af379d6f0b30e4ca28716afbcb95101daacb0 Mon Sep 17 00:00:00 2001 From: Jason King Date: Thu, 12 Oct 2023 17:57:22 -0700 Subject: [PATCH 1/2] Added feature to write update report to file --- roles/nso/tasks/update_report.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/roles/nso/tasks/update_report.yml b/roles/nso/tasks/update_report.yml index 82bcf93..fc698aa 100644 --- a/roles/nso/tasks/update_report.yml +++ b/roles/nso/tasks/update_report.yml @@ -1,3 +1,11 @@ +- name: Write update report to file + copy: + content: "{{ hostvars[inventory_hostname].nso_config_result.commit_result[0].dry_run_result.native.device[0].data }}" + dest: "{{ lookup('env', 'PWD') }}/{{ inventory_hostname }}_result.txt" + when: log | bool + vars: + log: no + - set_fact: update_report: "{{ lookup('template', 'update-report.yml.j2') | from_yaml }}" From 6b541cad81ef18d398b7460e6a09c1ace55bfaa9 Mon Sep 17 00:00:00 2001 From: Jason King Date: Thu, 12 Oct 2023 17:59:26 -0700 Subject: [PATCH 2/2] Update galaxy version --- galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galaxy.yml b/galaxy.yml index be691d0..c1bfd38 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.12 +version: 1.2.13 # The path to the Markdown (.md) readme file. This path is relative to the root of the collection readme: README.md