e30chris / Ansible-ServerDelivery

Deliver a new server with all the required updates and security stuff, logins too.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible-ServerDelivery

Take a fresh deployed server from AWS or Digital Ocean and deliver it with everything it needs to be a secure, easy to use simple server. Servers will be deployed via Tugboat for Digital Ocean and AWS will use Web or cli.

  • Goal:
    • Apply all updates via YUM, DNF or Apt
    • Apply sane security setup to sshd
    • Create a list of users
    • Each user should have:
      • SSH Keys loaded
      • Shell configured
      • Aliases ready
      • Sudo access
      • SSH public keys in authorized_keys

Requirements

  • Server is Ubuntu, CentOS or Fedora
  • Server has a public facing IP
  • SSH is enabled
  • Each user to be created has a public ssh key in files/

Role Variables

users_ssh_key_pass = password for the ssh key created on the delivered server delivered_users = users to create on the system that will have sudo must_have_apps = list of apps to install ssh_config = path to sshd config file sshd_daemon = name of ssh daemon (ssh or sshd)

Dependencies

License

GNU

Author Information

Chris Livermore

@e30chris

Sandors Systems Scribbles

About

Deliver a new server with all the required updates and security stuff, logins too.

License:GNU General Public License v2.0