2017 © Pedro Peláez
 

chef-role ansible-role-nginx-site

Ansible role to configure sites for nginx service.

image

vundb/ansible-role-nginx-site

Ansible role to configure sites for nginx service.

  • Sunday, March 19, 2017
  • by vundb
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 5 % Grown

The README.md

Ansible Role Nginx Site

Ansible role to configure sites for nginx service., (*1)

Requirements

None., (*2)

Role Variables

  • nginx_user: Name of system user to run service with. Default value is "nginx", (*3)

  • nginx_group: Name of system group to run service with. Default value is "nginx", (*4)

  • nginx_services: Array with services to be restarted on configuration changes. Default value is ["nginx"], (*5)

  • nginx_sites: Array with site configuration. Also called server blocks. See default vars file, (*6)

Dependencies

None., (*7)

Example Playbook

- hosts: all
  roles:
    - role: vundb-nginx-site
      nginx_sites:
        - label: "example.com"
          listen_hosts: ["80"]
          server_names: ["example.com"]
          access_log: "/var/log/nginx/example.com.access_log"
          error_log:  "/var/log/nginx/example.com.error_log"
          root: "/var/www/example.com"

License

MIT, (*8)

Author Information

  • You can find more roles in my GitHub channel vundb
  • Follow me on Twitter @vundb

The Versions

19/03 2017

dev-master

9999999-dev

Ansible role to configure sites for nginx service.

  Sources   Download

MIT

The Requires

 

by Viktor Breitenbuecher

19/03 2017

1.2.0

1.2.0.0

Ansible role to configure sites for nginx service.

  Sources   Download

MIT

The Requires

 

by Viktor Breitenbuecher

19/03 2017

dev-feature/custom-template

dev-feature/custom-template

Ansible role to configure sites for nginx service.

  Sources   Download

MIT

The Requires

 

by Viktor Breitenbuecher

26/11 2016

1.1.0

1.1.0.0

Ansible role to configure sites for nginx service.

  Sources   Download

MIT

The Requires

 

by Viktor Breitenbuecher

17/11 2016

1.0.0

1.0.0.0

Ansible role to configure vhosts for nginx service.

  Sources   Download

MIT

The Requires

 

by Viktor Breitenbuecher