# backup playbook yml files - only if chaned

**URL:** <https://forum.ansible.com/t/backup-playbook-yml-files-only-if-chaned/33523>\
**Category:** Ansible Project\
**Created:** [July 30, 2020, 2:07am UTC](https://forum.ansible.com/t/backup-playbook-yml-files-only-if-chaned/33523 "2020-07-30T02:07:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [July 30, 2020, 2:07am UTC](https://forum.ansible.com/t/backup-playbook-yml-files-only-if-chaned/33523/1 "2020-07-30T02:07:24Z")

</div>

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

```auto
- 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

```

```auto

```

```auto

```

```auto
I do not care to copy to remote node as well... 

```

```auto

```

```auto
Does anyone has better way ( module or otherwise ) to handle this "backup" and hence poor man's version control for playbooks ... 

```

```auto

```

```auto

```

Thanks

---

<div class="post-metadata">

**Author:** ![Kiran\_Kumar](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@Kiran\_Kumar](https://forum.ansible.com/u/Kiran_Kumar)\
**Post date:** [July 30, 2020, 2:14am UTC](https://forum.ansible.com/t/backup-playbook-yml-files-only-if-chaned/33523/2 "2020-07-30T02:14:53Z")

</div>

I was able to do backup … any suggestions on below

TASK [backup playbooks] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [localhost]: FAILED! =\> {“msg”: “A vault password or secret must be specified to decrypt /etc/ansible/playbooks/windows/local-user-add.yml”}

…

copy seems does not like valuted files … ?
