- name: Copy a new "ntp.conf file into place, backing up the original if it differs from the copied version copy: src: /etc/ansible/playbooks/ dest: /etc/ansible/playbooks/BACKUP/
owner: root group: root mode: '0644' backup: yes
I do not care to copy to remote node as well...
Does anyone has better way ( module or otherwise ) to handle this "backup" and hence poor man's version control for playbooks ...