1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-23 07:21:58 +01:00
eoli3n-dotfiles/install.sh

25 lines
574 B
Bash
Raw Normal View History

2017-12-16 22:56:14 +01:00
#!/bin/bash
2017-12-16 22:45:14 +01:00
cd "$( dirname "${BASH_SOURCE[0]}" )"
# Install Ansible
if [[ ! -f /usr/bin/ansible ]]
then
pip install ansible
fi
if [[ -z ${1+x} ]]
then
echo "Please choose a tag to install as param:"
ansible-playbook -i "localhost," -c local install.yml --list-tags
exit 1
fi
2017-12-16 23:43:37 +01:00
echo "### DRYRUN #################################################################"
2017-12-16 22:45:14 +01:00
ansible-playbook -i "localhost," -c local install.yml --ask-become-pass -CD -t $1
2017-12-16 23:43:37 +01:00
echo "Do you want to install ?"
ansible-playbook -i "localhost," -c local install.yml --ask-become-pass -t $1