Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geerlingguy/ansible-role-passenger
Ansible Role - Passenger with Nginx
https://github.com/geerlingguy/ansible-role-passenger
ansible nginx passenger rails role ruby search
Last synced: 4 days ago
JSON representation
Ansible Role - Passenger with Nginx
- Host: GitHub
- URL: https://github.com/geerlingguy/ansible-role-passenger
- Owner: geerlingguy
- License: mit
- Created: 2015-02-05T17:28:27.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T19:22:47.000Z (6 months ago)
- Last Synced: 2025-01-10T08:19:09.940Z (11 days ago)
- Topics: ansible, nginx, passenger, rails, role, ruby, search
- Language: Jinja
- Homepage: https://galaxy.ansible.com/geerlingguy/passenger/
- Size: 58.6 KB
- Stars: 33
- Watchers: 2
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Passenger
[![CI](https://github.com/geerlingguy/ansible-role-passenger/workflows/CI/badge.svg?event=push)](https://github.com/geerlingguy/ansible-role-passenger/actions?query=workflow%3ACI)
Installs Passenger (with Nginx) on RedHat/CentOS (soon) or Debian/Ubuntu linux servers.
## Requirements
None.
## Role Variables
Available variables are listed below, along with default values (see `defaults/main.yml`):
passenger_server_name: www.example.com
The server name (used in the Nginx virtual host configuration).
passenger_app_root: /opt/example/public
The `passenger_root` for your application (e.g. the `public` folder in a rails app).
passenger_app_env: production
The app environment passenger will load.
passenger_root: /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
passenger_ruby: /usr/bin/rubyValues for passenger configuration directives inside `nginx.conf`. These defaults should generally work correctly, but if you build `ruby` on its own (as an example), the path to ruby may be different.
nginx_worker_processes: "{{ ansible_processor_vcpus | default(ansible_processor_count) }}"
nginx_worker_connections: "768"
nginx_keepalive_timeout: "65"
nginx_remove_default_vhost: trueNginx directives.
## Dependencies
None.
## Example Playbook
- hosts: server
roles:
- { role: geerlingguy.passenger }## License
MIT / BSD
## Author Information
This role was created in 2015 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).