Go to file
Vitaly Znachenok d23c8522a1 Add log file for node.toml 2017-11-21 16:33:52 +03:00
files add key template 2017-11-12 20:14:40 +03:00
group_vars Add missing variable for netstat app.json 2017-11-21 16:33:03 +03:00
roles Add log file for node.toml 2017-11-21 16:33:52 +03:00
LICENSE Initial commit 2017-11-04 12:49:41 -07:00
README update readme file. 2017-11-21 13:35:31 +03:00
ansible.cfg fix ec2 launch bug. 2017-11-15 19:44:59 +03:00
ec2.yml fix dns name issue 2017-11-21 00:57:26 +03:00
hosts.example change hosts to hosts.example 2017-11-21 14:17:58 +03:00
site.yml add nginx role 2017-11-21 13:35:39 +03:00

README

Ansible playbook.

Ansible version 2.3 or high.

Before start, you need get AWS access key, please read the instruction:  http://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html
All variables must be set in site.yml (vars section) and group_vars/all file.

Short FAQ:
Q: Where find vpc_subnet_id? 
A: You can use aws cli for get the variable (https://aws.amazon.com/cli/). run: aws ec2 describe-subnets and find "AvailabilityZone" with the related "SubnetId": "subnet-XXXXXX"

Q: How add ssh key pair?
A: For details, please see: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html

Q: Any difference between admins.pub vs ssh_bootnode.pub? Where each one is used?
A: File admins.pub constant keys what used to access use root and ubuntu (sudo user), ssh_bootnode.pub used for give unprivileged access to server. If it no need, can use one file.

Q: When you run ec2.yml/site.yml how to verify that everything has completed as expected? Please provide verification steps.
A: ec2.yml must pass all steps w/o errors, it says, all pass correct.

Usage: 
Setup ec2 instance: ansible-playbook ec2.yml

Before setup bootnode or refresh config, need add host ip file hosts and run: ansible-playbook -i hosts site.yml