1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

added default Y to install.sh script

This commit is contained in:
eoli3n 2017-12-17 21:09:47 +01:00
parent 795064ccea
commit 8ac9977604
2 changed files with 16 additions and 3 deletions

@ -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

@ -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