Skip to content

Commit f13b321

Browse files
author
armab
committed
Use :ansible_local provisioner for installing Ansible
1 parent 9b14cda commit f13b321

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

Vagrantfile

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
5050
vm_config.vm.provision :hostmanager
5151
end
5252

53-
if vm_config.vm.hostname.include? "ubuntu"
54-
# Install Ansible native packages so the Ansible provisioner will work on systems
55-
# without Python 2.7 (i.e. Xenial)
56-
vm_config.vm.provision "shell",
57-
inline: "sudo apt-add-repository -y ppa:ansible/ansible; sudo apt-get update; sudo apt-get install -y ansible"
58-
end
59-
if vm_config.vm.hostname.include? "centos"
60-
vm_config.vm.provision "shell",
61-
inline: "sudo yum -y install epel-release; sudo yum -y install ansible git"
62-
end
63-
64-
vm_config.vm.provision :ansible do |ansible|
53+
vm_config.vm.provision :ansible_local do |ansible|
54+
ansible.install = true
6555
ansible.playbook = "stackstorm.yml"
6656
end
6757
end

0 commit comments

Comments
 (0)