ansible - Symlink pointing to folder outside of Vagrant root on host machine -


i'm using virtualbox , vagrant, , inside project files have symlinks files outside of project, e.g.

oh host machine (osx), have following folder structure:

/documents/vhosts/mysite/this-is-a-symlink

mysite folder in sync'd in vm /var/www/html

this-is-a-symlink points folder in dropbox, e.g. /dropbox/some-folder. problem vm isn't seeing files symlink pointed to. vagrant file:

vagrantfile_api_version = "2"  # require yaml module require 'yaml'  configuration = yaml::load(file.read("#{file.dirname(__file__)}/config.yml"))  vagrant.configure(vagrantfile_api_version) |config|     config.vm.box = configuration["box_name"]     config.vm.hostname = "ansible"      config.vm.network :private_network, ip: configuration["ip_address"]     config.vm.synced_folder "mysite", "/var/www/html", id: configuration["project_name"], create: true,         :owner => 'ubuntu',         :group => 'www-data',         :mount_options => ["dmode=0775", "fmode=0664"]      config.vm.provider "virtualbox" |vb|         vb.gui = false         vb.customize ['modifyvm', :id, '--memory', '1024']         vb.customize ["modifyvm", :id, "--cpus", "1"]         vb.customize ["modifyvm", :id, "--nictype1", "virtio"]         vb.customize ["setextradata", :id, "vboxinternal2/sharedfoldersenablesymlinkscreate/mysite", "1"]         vb.customize ["setextradata", :id, "vboxinternal2/sharedfoldersenablesymlinkscreate/vagrant", "1"]     end      config.vm.provision "ansible" |ansible|         ansible.extra_vars = "config.yml"         ansible.playbook = "ansible/playbook.yml"         ansible.sudo = true         ansible.limit = "all"         ansible.verbose = "vv"     end      config.vm.provision :shell, inline: "echo fin." end 

is possible me have sort of setup?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -