symlinks

Ansible Role: votum.symlinks

Build Status

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.

Requirements

none

Role Variables

Use symlinks_directory_symlink_dict to describe your symlinks as shown in the example playbook below.

Dependencies

none

Example Playbook

- 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 }

License

MIT

Author Information

VOTUM GmbH

About

Role for turning existing directories into symlinks.

Install
ansible-galaxy install votum/ansible-role-symlinks
GitHub repository
License
Unknown
Downloads
51
Owner