Role for turning existing directories into symlinks. It provides automated symlinking i.e. usefull for preparing capistrano style deployments.
If it finds an existing directory under the configured symlink location it moves it to the symlink source location before creating the symlink. If a symlinked directory does not exist it will be created empty on the fly.
none
Use symlinks_directory_symlink_dict
to describe your symlinks as shown in the example playbook below.
none
- hosts: servers
vars:
symlinks_directory_symlink_dict:
- { directory: '/var/www/foo/releases/00000000000000', symlink: '/var/www/foo/current' }
- { directory: '/var/www/foo/shared/common', symlink: '/var/www/foo/releases/00000000000000/common' }
- { directory: '/var/www/foo/shared/media', symlink: '/var/www/foo/releases/00000000000000/media' }
- { directory: '/var/www/foo/shared/log', symlink: '/var/www/foo/releases/00000000000000/var/log' }
roles:
- { role: votum.symlinks }
MIT
VOTUM GmbH