backup location in template module

482 views
Skip to first unread message

Vikas Kumar

unread,
May 13, 2015, 10:57:25 PM5/13/15
to ansible...@googlegroups.com
Dear All,

I have below line from my ansible playbook which uses template module.

 - template: src=nginx_conf.j2 dest=/etc/nginx/nginx.conf backup=yes


This works great, but create a backup in the same directory (/etc/nginx/ in this case). Is there a way out to somehow create the backup on a different location, say /etc/nginx/backups/  directory.

Regards,
Vikas

Brian Coca

unread,
May 13, 2015, 11:53:36 PM5/13/15
to ansible...@googlegroups.com
not yet, a couple of features we have been considering a)configurable
'backup depo' on target machine (/var/cache/ansible/backups) and/or
backup up on 'master'.




--
Brian Coca

Vikas Kumar

unread,
May 14, 2015, 12:19:34 AM5/14/15
to ansible...@googlegroups.com
Thank you Brian. I would look forward to have this feature.

Regards,
Vikas

jo...@gogii.net

unread,
Feb 20, 2016, 11:35:15 AM2/20/16
to Ansible Project
Hi, 

Any update on this?

Is there a workaround to achieve this? Maybe with a callback plugin?

Thanks!

Best regards, 
Joel.
Reply all
Reply to author
Forward
0 new messages