ggiinnoo.nginx

NGINX

Diese Rolle dient als einfacher Nginx-Installer für die aufgeführten Betriebssysteme. Sie ist leicht konfigurierbar und ermöglicht es, die gesamte nginx.conf durch eine einfache Variable zu überschreiben.

CI-Tests

Ansible-Rolle nginx


Beispiel für ein Playbook

- hosts: webservers
  vars_files:
    - vars/main.yml
  roles:
    - role: ggiinnoo.nginx
      tags: [nginx]

Variablen


# Welche Version möchten Sie? Stabil oder Hauptversion | Wird nur während der Installation verwendet
nginxRedHatRelease: stable

nginxServicePort: 80
nginxServiceSecurePort: 443

# Server-Signaturen deaktivieren?
nginxServiceSignatures: true

# server_names_hash_bucket_size
nginxServerNameHashBucketSize: 256

nginxErrorLog: "/var/log/nginx/error.log"
nginxAccessLog: "/var/log/nginx/access.log"

nginxConfLocationDest: "/etc/nginx/nginx.conf"
nginxConfLocationSrc: "{{ role_path }}/templates/nginxRedHat.conf.j2"

Kommende Funktionen

  • Verwaltung des conf.d-Ordners

Über das Projekt

Configure nginx

Installieren
ansible-galaxy install ggiinnoo.nginx
GitHub Repository
Lizenz
Unknown
Downloads
2.6k
Besitzer
Code doesn't scare me.. The server does.