From 8ac99776045ae4d40abd8f03ed1275be2ba5293c Mon Sep 17 00:00:00 2001 From: eoli3n Date: Sun, 17 Dec 2017 21:09:47 +0100 Subject: [PATCH] added default Y to install.sh script --- install.sh | 6 ++++-- vagrant/archlinux/Vagrantfile | 13 ++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) 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