This role performs the initial setup instructions on new Ububntu servers as recommended by digialocean.com. It is a collection of commands from these pages:
- Initial Server Setup with Ubuntu 18.04
- How to Set Up SSH Keys on Ubuntu 18.04
- How to Use Ansible to Automate Initial Server Setup on Ubuntu 18.04
This role assumes that we are connecting to the remote machine with a root user.
Check the file defaults/main.yml for details.
None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
MIT
Milad Kawas. @miladkawas