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 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 }}"