14 lines
214 B
Bash
Executable File
14 lines
214 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR=$(dirname $0)
|
|
cd $DIR
|
|
|
|
sudo apt update
|
|
sudo apt -y upgrade
|
|
sudo apt -y install openssh-server ansible
|
|
sudo ansible-playbook playbook.yml -D
|
|
sudo apt -y autoremove
|
|
|
|
# clean up
|
|
sudo rm -r ~/.ansible
|