Prepare your config files and edit public keys and other variables:
./setup.sh
nano vars.yml
Run the playbook to set up users and firewall.
sudo ansible-playbook main.yml
Install docker:
sudo ansible-playbook main.yml -t docker
Install nginx:
sudo ansible-playbook main.yml -t nginx
Install nextcloud:
sudo ansible-playbook main.yml -t nextcloud
Secure the server (do not allow password ssh auth):
sudo ansible-playbook main.yml -t security
Quick setup
sh -c "$(curl -sL https://raw.githubusercontent.com/tna76874/server-setup/main/install)"