/ansible-role-nginx-webserver

Ansible Role to configuration and manangement of nginx webservers

Primary LanguageJinja

Nginx Webserver

This role can be used to setup a Nginx Webserver with cerbot already included.

Requirements

none

Role Variables

---
domain: domain.com      # The domain of your DNS.
subdomain: subdomain    # The subdomain of your DNS A record.
root: /var/www/html     # defines the path to the webserver root dir
proxy_pass_port: "80"   # defines a port for a proxy_pass if needed    

Dependencies

GeerlingGuy's Cerbot Role - already included on the nginx webserver role dependencies

Example Playbook

---
- hosts: host

  roles:
    - name: nginx_webserver
      vars:
        domain: domain.com
        subdomain: subdomain
        admin_email: 'mail@domain.com'
        root: /var/www/html

License

MIT

Author Information

Gabriel Bernardo