I have several workstations with a similar setup (home computer, workstation at the office) and also a server that is used as a remote storage. I'm trying to make Ansible
to backup and synchronize several application profile directories (Intellij Idea profile dir, my desktop environment profile dir, some applications unpacked from tar.gz distributions and so on) between these devices. I never use all devices at the same time.
The logic for every dir should be:
I'm going to use Ansible
with synchronize
module. But implementing the logic above using when
for every folder in my (rather long) list sounds like inventing a bycicle to me. It should be a better way to accomplish that.
Seems like a common task, maybe there is a third-party Ansible role/plugin that does that? Or maybe a separate application that may be called using command
?
Ansible is obviously not the appropriate tool for this.
Why don't you use an online storage service with folder sync capabilities, like Dropbox?