nginx

Ansible Role: nginx

=========

A simple Ansible role for installing and configuring the Nginx for RHEL/CentOS 7 and Debian 10.

  • Install the necessary packages;
  • Create configuration file;

Requirements

  • The SELinux and firewall settings are not considered to be a concern of this role.

Role Variables

None of the variables below are required

Variable Default Comments
web_site Inform web site common name in default/main.yml
www_web_site Inform web site common name with www in default/main.yml
log_path Inform Log path in vars/Redhat.yml and vars/Debian.yml
ssl_path Inform ssl path in vars/Redhat.yml and vars/Debian.yml
vhost_path Inform Vhost path in vars/Redhat.yml and vars/Debian.yml
srv_web Inform Nginx service in vars/Redhat.yml and vars/Debian.yml

Dependencies

You need to install python-apt package on debian 10

Example Playbook


  • hosts: server

    roles:

    • /path/nginx

...

Contributing

Issues, feature requests, ideas are appreciated and can be posted in the Issues section.

Author Information

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

About

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

Install
ansible-galaxy install acandid/nginx
GitHub repository
License
Unknown
Downloads
218