server configuration for ks-server (haskell, mongodb, nginx)
root
- roles
- templates
- README.md
- dev-setup-playbook.yml
- init-server-playbook.yml
- prod-setup-playbook.yml
- user-setup-playbook.yml
ksserver: ansible playbooks
Playbooks
New server setup:
- user-setup-playbook.yml: creates default users and configures ssh
- init-server-playbook.yml: install software and configure system
- 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