Skip to content

Ansible scripts for Initial Server Setup on Ubuntu servers

Notifications You must be signed in to change notification settings

beglov/ansible-bootstrap-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Initial Server Setup on Ubuntu

This playbook will execute a initial server setup for Ubuntu systems.

The included tasks are following:

  • Create a new regular user with sudo privileges
  • Set authorized key for remote user
  • Disable password authentication for root
  • Update apt and install required system packages
  • Configure and enable UFW

Running this Playbook

0. Requirements

First of all, install the latest version of Ansible, in Ubuntu:

sudo apt-add-repository ppa:ansible/ansible
sudo apt update
sudo apt install ansible

1. Obtain the playbook

git clone https://github.com/beglov/ansible-bootstrap-ubuntu.git
cd ansible-bootstrap-ubuntu

2. Add your remote servers to inventory file

cp hosts.sample hosts
nano hosts

3. Run the Playbook

ansible-playbook bootstrap.yml -i hosts -l [target] -u [remote user]

About

Ansible scripts for Initial Server Setup on Ubuntu servers

Topics

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •