server configuration for ks-server (haskell, mongodb, nginx)

root

ksserver: ansible playbooks

Playbooks

New server setup:

  1. user-setup-playbook.yml: creates default users and configures ssh
  2. init-server-playbook.yml: install software and configure system
  3. prod-setup-playbook.yml: install and configure ksnitch software

Private key

A private key required. Specify the key for the remote_user:

--private-key=~/.ssh/remote_user_ssh_key.pem

Note: user-setup-playbook is executed by the default ubuntu user and requires the key used to create the EC2 instance.

Variables

User-specific and private variables must be defined. See the JSON template ./private_vars.json.

Specify the extra vars JSON file:

--extra-vars "@private_vars.json"

Inventory

An inventory file is required to execute the playbooks. See template:

./inventory/ksnitch