Hi
I do not want to use GIT for version control , so i am going to backup my playbooks … only if this is changed copy the yml file with date …
I see copy module can do it
- 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 ...
Thanks