Compare commits
2 Commits
ac4d628d0b
...
7ee7eebfc7
Author | SHA1 | Date | |
---|---|---|---|
7ee7eebfc7 | |||
e20362ec07 |
13
install.sh
13
install.sh
@ -6,7 +6,7 @@ SUDO='sudo'
|
||||
ANSIBLE_REPO='https://git.grondek.pl/pgrondek/ansible-desktop.git'
|
||||
|
||||
if [[ "$EUID" == 0 ]]; then
|
||||
echo "Run script as normal user"
|
||||
echo "Run script as normal user"
|
||||
fi
|
||||
|
||||
"${SUDO}" apt update
|
||||
@ -14,8 +14,11 @@ fi
|
||||
"${SUDO}" apt-add-repository --yes --update ppa:ansible/ansible
|
||||
"${SUDO}" apt install -y git ansible
|
||||
|
||||
mkdir -p "${HOME}/src"
|
||||
cd "${HOME}/src"
|
||||
git clone "$ANSIBLE_REPO"
|
||||
cd ansible-desktop
|
||||
if [ -d "${HOME}/src/ansible-desktop" ]; then
|
||||
mkdir -p "${HOME}/src"
|
||||
cd "${HOME}/src"
|
||||
git clone "$ANSIBLE_REPO"
|
||||
fi
|
||||
cd "${HOME}/src/ansible-desktop"
|
||||
git pull
|
||||
ansible-playbook localhost.yml
|
||||
|
@ -4,7 +4,6 @@
|
||||
- name: clean packages
|
||||
apt:
|
||||
pkg:
|
||||
- snapd
|
||||
- cloud-init
|
||||
- lxd
|
||||
- lxd-client
|
||||
|
Loading…
Reference in New Issue
Block a user