- packages (installs essentials packages)
- certbot (installs snpad package, installs core, certbot snaps)
- fail2ban (installs, enable fail2ban)
- ufw (installs, enables ufw and allows 22, 80, 443 ports)
Install ansible, vagrant, virtualbox
Copy hosts.sample
to hosts
. Update hosts list inside hosts
file.
Run playbook on all hosts:
ansible-playbook initial-setup.yml
- Uncomment these lines in ansible.cnf:
private_key_file = ~/.vagrant.d/insecure_private_key
host_key_checking = False
- Run vagrant:
vagrant up
- Run playbook:
ansible-playbook test-initial-setup.yml