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 ... ?
On Wednesday, July 29, 2020 at 7:07:24 PM UTC-7, Kiran Kumar wrote:
>
> 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
>
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/464cb85c-0df9-4aed-bb14-1e0459d91d5bo%40googlegroups.com.