Skip to content

About

Nginx Role for Phansible

Topics

Resources

Code of conduct

Stars

0 stars

Watchers

3 watching

Forks

Latest commit

 

History

26 Commits

Folders and files

Repository files navigation

Phansible Role: Nginx

CI

An Ansible Role that installs Nginx from the distribution packages and configures a default site that hands PHP requests to php-fpm, specifically created with Phansible in mind.

Requirements

  • Ubuntu 22.04, 24.04, 26.04 or Debian 12, 13
  • Ansible 2.15 or newer
  • PHP requests are passed to /run/php/php-fpm.sock, the socket the distro and sury php-fpm packages register for the installed PHP version. Install php-fpm separately, for example with role-php.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

nginx:
    docroot: "/vagrant"
    servername: "myApp.vb"
  • nginx.docroot: document root of the default site.
  • nginx.servername: server_name of the default site.

Dependencies

None.

Example Playbook

- hosts: all
  become: yes
  vars:
    nginx:
      docroot: /var/www/app/public
      servername: app.test
  roles:
    - role-php
    - role-nginx

License

This role is released under the terms of the license specified in the repository or if not specified, under the MIT license.

Author Information

This role was created in 2015 by The Phansible Team & Contributors, credits go also to Jeff Geerling, author of Ansible for DevOps and source of inspiration.

About

Nginx Role for Phansible

Topics

Resources

Code of conduct

Stars

0 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages