mirror of
https://github.com/willshersystems/ansible-sshd
synced 2024-11-28 21:50:18 +01:00
6e4931fa9d
Still needs a bit of work to make OS switching a little more seamless
29 lines
707 B
Ruby
29 lines
707 B
Ruby
|
|
# vi: set ft=ruby :
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
# config.vm.define "ubuntu" do |ubuntu|
|
|
# ubuntu.vm.box = "ubuntu/trusty64"
|
|
# ubuntu.vm.provision "shell", inline: <<-SHELL
|
|
# sudo add-apt-repository -y ppa:ansible/ansible
|
|
# sudo apt-get update -qq
|
|
# sudo apt-get -qq install ansible
|
|
# SHELL
|
|
# end
|
|
|
|
config.vm.define "centos6" do |centos|
|
|
centos.vm.box = "bento/centos-6.7"
|
|
end
|
|
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
sudo yum install -y libselinux-python
|
|
SHELL
|
|
|
|
config.vm.provision "ansible_local" do |ansible|
|
|
ansible.playbook = "tests/test.yml"
|
|
ansible.install = true
|
|
end
|
|
|
|
end
|