Skip to content

(yet another) Ansible role to install and configure nginx.

License

Notifications You must be signed in to change notification settings

bodsch/ansible-nginx

Repository files navigation

Ansible Role: nginx

Ansible role to install and configure nginx.

GitHub Workflow Status GitHub issues GitHub release (latest by date) Ansible Quality Score

Requirements & Dependencies

Ansible Collections

Operating systems

Tested on

  • ArchLinux
  • ArtixLinux
  • Debian based
    • Debian 11
    • Ubuntu 20.10

usage

default configuration

nginx_acme: {}

nginx_default_site:
  file: /etc/nginx/sites-enabled/default
  remove: true

nginx_vhost_templates:
  http: vhost_http.conf.j2
  https: vhost_https.conf.j2
  redirect: vhost_redirect.conf.j2

nginx_logging:
  base_directory: /var/log/nginx

nginx_global: {}

nginx_events:
  worker_connections: "1024"
  multi_accept: false

nginx_logformat: {}

nginx_http: {}

nginx_gzip: {}

nginx_ssl: {}

nginx_custom_includes: {}

nginx_vhosts: []

Contribution

Please read Contribution

Development, Branches (Git Tags)

The master Branch is my Working Horse includes the "latest, hot shit" and can be complete broken!

If you want to use something stable, please use a Tagged Version!


Author and License

  • Bodo Schulz

License

Apache

FREE SOFTWARE, HELL YEAH!