Compare commits

...

2 Commits

2 changed files with 8 additions and 6 deletions

View File

@ -6,7 +6,7 @@ SUDO='sudo'
ANSIBLE_REPO='https://git.grondek.pl/pgrondek/ansible-desktop.git' ANSIBLE_REPO='https://git.grondek.pl/pgrondek/ansible-desktop.git'
if [[ "$EUID" == 0 ]]; then if [[ "$EUID" == 0 ]]; then
echo "Run script as normal user" echo "Run script as normal user"
fi fi
"${SUDO}" apt update "${SUDO}" apt update
@ -14,8 +14,11 @@ fi
"${SUDO}" apt-add-repository --yes --update ppa:ansible/ansible "${SUDO}" apt-add-repository --yes --update ppa:ansible/ansible
"${SUDO}" apt install -y git ansible "${SUDO}" apt install -y git ansible
mkdir -p "${HOME}/src" if [ -d "${HOME}/src/ansible-desktop" ]; then
cd "${HOME}/src" mkdir -p "${HOME}/src"
git clone "$ANSIBLE_REPO" cd "${HOME}/src"
cd ansible-desktop git clone "$ANSIBLE_REPO"
fi
cd "${HOME}/src/ansible-desktop"
git pull
ansible-playbook localhost.yml ansible-playbook localhost.yml

View File

@ -4,7 +4,6 @@
- name: clean packages - name: clean packages
apt: apt:
pkg: pkg:
- snapd
- cloud-init - cloud-init
- lxd - lxd
- lxd-client - lxd-client