https://github.com/chrislaskey/community-share-ansible
Ansible configuration management for Community Share
https://github.com/chrislaskey/community-share-ansible
ansible configuration-management nginx postgresql ssl unicorn
Last synced: 3 months ago
JSON representation
Ansible configuration management for Community Share
- Host: GitHub
- URL: https://github.com/chrislaskey/community-share-ansible
- Owner: chrislaskey
- Created: 2017-01-31T23:46:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T14:54:58.000Z (almost 7 years ago)
- Last Synced: 2025-03-09T23:45:02.793Z (over 1 year ago)
- Topics: ansible, configuration-management, nginx, postgresql, ssl, unicorn
- Language: Shell
- Homepage:
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible Community Share
> Ansible configuration management for standing up a Community Share application
See the [Community Share repository](https://github.com/chrislaskey/community-share) for more details about the application.
## About
Community Share uses:
- Amazon EC2 for compute
- Amazon S3 for file storage
- LinkedIn for user authentication
- Ansible for server configuration and code deployment
Community Share runs on top of:
- Ubuntu 16.04
- Unicorn
- PostgreSQL
- LetsEncrypt for SSL
- Nginx
## Installation
**Note**: Target architecture is Ubuntu 16.04.
#### Initial Setup
Follow the [Ansible Installation Guide](https://docs.ansible.com/ansible/intro_installation.html) to install the latest version of Ansible locally.
Clone the project locally:
```bash
$ git clone git@github.com:chrislaskey/ansible-community-share.git
$ cd ansible-community-share
```
Add a host inventory file:
```bash
$ copy hosts/production.example hosts
$ vim production
```
Transfer the bootstrap script to the remote host:
```bash
$ scp bin/bootstrap your-host.com:~/
$ ssh your-host.com
```
Run the bootstrap script on the **remote** host
```bash
$ ./bootstrap
```
Confirm ansible can connect and run on the host:
```bash
$ bin/ping
```
#### Running Playbooks
Update the host inventory file with the correct hostnames:
```bash
$ copy hosts/production.example hosts/production
$ vim hosts/production
```
To configure the server run the playbook:
```bash
$ bin/install
```
To deploy application code changes also use:
```bash
$ bin/install
```