No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
roles
vars
.gitignore
README.md
bootstrap.yml
create-user.yml
ec2.yml
hosts.example

README.md

Using ec2, create a group with Power role and add user to that group. Note ec2.yml will update hosts

AWS_ACCESS_KEY=access AWS_SECRET_KEY="secret" ansible-playbook -i hosts ec2.yml
ansible-playbook -i hosts create-user.yml --user root --limit launched
ansible-playbook -i hosts bootstrap.yml --limit launched

If you are not using ec2, make sure you have access to server first. Assuming you still need to upload ssh key to the server and you have the root password

scp ~/.ssh/id_rsa.pub root@app.com:~/uploaded_key.pub
ssh root@staging.app.com
mkdir -m og-rwx .ssh
cat ~/uploaded_key.pub >> ~/.ssh/authorized_keys

Update hosts file to change the domain or IP under www

ansible-playbook -i hosts create-user.yml --user root --limit www
ansible-playbook -i hosts bootstrap.yml --limit www

Sources: