From 8b261657a5b2dd7157fb5351629fedab68cb9279 Mon Sep 17 00:00:00 2001 From: Matt Willsher Date: Thu, 4 May 2017 14:14:51 +0100 Subject: [PATCH] Check role link exists before attempting to create it --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index d9df733..4c07330 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -22,7 +22,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| # end config.vm.provision "shell", inline: <<-SHELL - ln -s /vagrant /vagrant/tests/roles/ansible-sshd || true + test -e /vagrant/tests/roles/ansible-sshd || ln -s /vagrant /vagrant/tests/roles/ansible-sshd SHELL config.vm.provision "ansible_local" do |ansible|