diff --git a/install.sh b/install.sh index 932a8e8..6aa6117 100755 --- a/install.sh +++ b/install.sh @@ -19,9 +19,11 @@ echo "### DRYRUN ############################################################### ansible-playbook -i "localhost," -c local install.yml --ask-become-pass -CD -t $1 -echo "Do you want to install ? (y/N)" +echo "Do you want to install ? (Y/n)" read ok -if [[ "$ok" == "y" ]] +ok=${ok:-Y} + +if [[ "$ok" == "Y" ]] then echo "### RUN ####################################################################" ansible-playbook -i "localhost," -c local install.yml --ask-become-pass -t $1 diff --git a/vagrant/archlinux/Vagrantfile b/vagrant/archlinux/Vagrantfile index b8c2618..7fb3f1d 100644 --- a/vagrant/archlinux/Vagrantfile +++ b/vagrant/archlinux/Vagrantfile @@ -1,12 +1,23 @@ # -*- mode: ruby -*- # vi: set ft=ruby : + + Vagrant.configure("2") do |config| config.vm.box = "terrywang/archlinux" + + config.vm.provider "virtualbox" do |vb| + # Display the VirtualBox GUI when booting the machine + #vb.gui = true + + # Customize the amount of memory on the VM: + vb.memory = "1024" + end + config.vm.provision "shell", inline: <<-SHELL pacman -Syu --noconfirm pacman -S ansible --noconfirm - pacman -R cowsay --noconfirm + pacman -R cowsay --noconfirm || exit 0 SHELL $script = <<-SCRIPT