acandid.nginx

Ansible Role: nginx

=========

This is a straightforward Ansible role for setting up and configuring Nginx on RHEL/CentOS 7 and Debian 10.

  • Installs the required packages;
  • Creates a configuration file;

Requirements

  • SELinux and firewall settings are not handled by this role.

Role Variables

None of the following variables are mandatory:

Variable Default Comments
web_site Specify the common name of the website in default/main.yml
www_web_site Specify the common name of the website with www in default/main.yml
log_path Specify the log path in vars/Redhat.yml and vars/Debian.yml
ssl_path Specify the SSL path in vars/Redhat.yml and vars/Debian.yml
vhost_path Specify the virtual host path in vars/Redhat.yml and vars/Debian.yml
srv_web Specify the Nginx service in vars/Redhat.yml and vars/Debian.yml

Dependencies

You need to install the python-apt package on Debian 10.

Example Playbook


  • hosts: server

    roles:

    • /path/nginx

...

Contributing

We welcome issues, feature requests, and ideas. Please share them in the Issues section.

Author Information

LinkedIn: https://br.linkedin.com/in/almircandido

Informazioni sul progetto

Install Nginx and ssl and Create Vhost in Debian 10 and RHEL/CentOS 7

Installa
ansible-galaxy install acandid.nginx
Licenza
Unknown
Download
244
Proprietario