geerlingguy.passenger

Ansible Role: Passenger

CI

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 the public 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 in nginx.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.

Informazioni sul progetto

Passenger installation for Linux/UNIX.

Installa
ansible-galaxy install geerlingguy.passenger
Licenza
mit
Download
94.7k
Proprietario
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns