Skip to content

turbine-kreuzberg/ansible-role-symlinks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Ansible role for turning existing directories into symlinks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages