geerlingguy.passenger
Ansible Role: Passenger
This role installs Passenger (with Nginx) on RedHat/CentOS (coming soon) or Debian/Ubuntu Linux servers.
Requirements
No requirements needed.
Role Variables
Here are the variables you can use, along with their default values (check defaults/main.yml
):
passenger_server_name: www.example.com
The name of your server (used in Nginx settings).passenger_app_root: /opt/example/public
The root folder for your application (like thepublic
folder in a Rails app).passenger_app_env: production
The environment that Passenger will use.passenger_root: /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
passenger_ruby: /usr/bin/ruby
Settings for Passenger configuration innginx.conf
. These should work correctly in most cases, but if you have a custom Ruby installation, the path might be different.nginx_worker_processes: "{{ ansible_processor_vcpus | default(ansible_processor_count) }}"
nginx_worker_connections: "768"
nginx_keepalive_timeout: "65"
nginx_remove_default_vhost: true
These are settings for Nginx.
Dependencies
No dependencies required.
Example Playbook
- hosts: server
roles:
- { role: geerlingguy.passenger }
License
MIT / BSD
Author Information
This role was created in 2015 by Jeff Geerling, the author of Ansible for DevOps.
Passenger installation for Linux/UNIX.
ansible-galaxy install geerlingguy.passenger