--- - set_fact: date: "{{ lookup('pipe', 'date +%Y%m%d-%H%M') }}"
- set_fact: file_name: "{{ ansible_host }}_config_{{ date }}" - name: Backup Nexus config nxos_config: backup: yes backup_options: filename: "{{ file_name }}" register: nxos_output - set_fact: temp_backup_file: "{{ nxos_output.backup_path }}" - name: copy file to staging folder copy: src: "{{ temp_backup_file }}" dest: "{{ deploy_dir}}/nxos/{{ file_name }}" delegate_to: localhost register: stage_copy -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/57f53e4f-0742-460d-aae1-873a8130db46n%40googlegroups.com.