Saving file before it is changed

25 views
Skip to first unread message

Mauricio Tavares

unread,
Jul 17, 2014, 10:06:49 AM7/17/14
to ansible...@googlegroups.com
Let's say I have a template that will reapply my, say,
/etc/ssh/sshd_conf if it has changed. How can I save the old one just
in case? Something like in /etc/ssh/Old would do fine; you get the
idea.

Ryan Schulze

unread,
Jul 17, 2014, 10:27:05 AM7/17/14
to ansible...@googlegroups.com
Something like the "backup" option in the template module?
http://docs.ansible.com/template_module.html

Mauricio Tavares

unread,
Jul 17, 2014, 10:51:13 AM7/17/14
to ansible...@googlegroups.com
On Thu, Jul 17, 2014 at 10:27 AM, Ryan Schulze <ry...@dopefish.de> wrote:
> Something like the "backup" option in the template module?
> http://docs.ansible.com/template_module.html
>
I have a feeling that might be exactly what I need. ;)
Thanks!

Michael DeHaan

unread,
Jul 17, 2014, 1:46:16 PM7/17/14
to ansible...@googlegroups.com
the backup feature should be really changed to do remote backups.  This may come later.




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAHEKYV4e2mG%2B80f%2BmnGe%3DmAZRMc6FMTM%2BN_K4mWnzXKQ7Q4Xfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages