Skip to content

This Ansible playbook creates a new Linux user and applies minimal security configurations to one or more VPS's.

License

Notifications You must be signed in to change notification settings

ricardotenv/SetupNewVPSWithAnsible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SetupNewVPSWithAnsible

This Ansible playbook creates a new Linux user and applies minimal security configurations to one or more VPS's.

⚠️ This playbook was only tested on VPS's running Ubuntu 22 and 24 LTS.

How to install

git clone https://github.com/ricardotenv/SetupNewVPSWithAnsible.git
cd SetupNewVPSWithAnsible

Add the virtual machine address to the inventory.

echo <ip-address> >> hosts

How to run

ansible-playbook -i hosts -u root -e "new_username=$(whoami)" playbook.yml

TO-DO

About

This Ansible playbook creates a new Linux user and applies minimal security configurations to one or more VPS's.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published