Hello Everyone,
I am trying to copy backup files from one remote windows server to another windows server using ansible playbook but not able to do so. I am using below playbook and which is running successfully also but when I check the backup file at destination location it is not present there. So any help would be appreciated.
---
- hosts: SQLSERVER
vars:
Hostname:
vars_prompt:
- name: Hostname
private: no
prompt: Hostname
default:
tasks:
- name: Sync SQLSERVER to SQLSERVER2
ansible.windows.win_copy:
src: E:\BACKUP
dest: \{{ Hostname }}\E$\BACKUP\
remote_src: yes
recurse: yes
Thanks and Regards,
Praveen Singh