https://github.com/narkoz/ansible-rails
Ansible playbook to provision a Rails deployment environment on CentOS server
https://github.com/narkoz/ansible-rails
Last synced: 3 months ago
JSON representation
Ansible playbook to provision a Rails deployment environment on CentOS server
- Host: GitHub
- URL: https://github.com/narkoz/ansible-rails
- Owner: NARKOZ
- License: bsd-2-clause
- Created: 2020-02-23T23:38:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-23T23:45:52.000Z (over 5 years ago)
- Last Synced: 2025-01-21T00:28:28.372Z (5 months ago)
- Size: 14.6 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Ansible Rails
Ansible playbook to setup a web server for a Rails application.
Components: Nginx, PostgreSQL, Redis, Ruby, Nodejs, Monit, Let's Encrypt,
Utilities (acmetool, git, htop, tmux, tree, wget, rclone, etc.). Rails
application is served via Puma application server._Note: unpolished since 2019._
## Requirements
+ Server: CentOS 7 and upper (with SElinux disabled)
+ Client: Ansible 2.7 and upper## Configuration
Copy `group_vars/all.yml.example` to `group_vars/all.yml` and set values.
Copy `hosts.example` to `hosts` and set server IP address and port.
Modify other values based on your needs.
## Usage
Initial run:
1. Run `ssh-keyscan -t rsa SERVER_IP >> ~/.ssh/known_hosts`
2. Run `ansible-playbook site.yml -i hosts -e ansible_port=22 -k -f 10`
After initial:
Just run `ansible-playbook site.yml -i hosts -f 10`
## License
Released under the BSD 2-clause license. See LICENSE.txt for details.