Skip to content

Ansible playbook to provision a Rails deployment environment on CentOS server

License

Notifications You must be signed in to change notification settings

NARKOZ/ansible-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Ansible playbook to provision a Rails deployment environment on CentOS server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published