Role that installs and configures nginx
Go to file
Andrea Dell'Amico 3421e2d944 Import the old role. 2020-06-02 14:52:24 +02:00
defaults Import the old role. 2020-06-02 14:52:24 +02:00
files Import the old role. 2020-06-02 14:52:24 +02:00
handlers Import the old role. 2020-06-02 14:52:24 +02:00
meta Import the old role. 2020-06-02 14:52:24 +02:00
tasks Import the old role. 2020-06-02 14:52:24 +02:00
templates Import the old role. 2020-06-02 14:52:24 +02:00
tests Initial commit 2020-05-28 14:52:45 +02:00
vars Initial commit 2020-05-28 14:52:45 +02:00
.gitignore Initial commit 2020-05-28 14:52:45 +02:00
LICENSE Initial commit 2020-05-28 14:52:45 +02:00
README.md Import the old role. 2020-06-02 14:52:24 +02:00

README.md

Role Name

A role that installs and configures the nginx web server and proxy

Role Variables

There are a lot of variables. See the defaults/main.yml file for a complete list. Here an example of how to setup a virtualhost:

nginx_virthosts:
  - virthost_name: '{{ ansible_fqdn }}'
    listen: '{{ http_port }}'
    server_name: '{{ ansible_fqdn }}'
    server_aliases: ''
    index: index.html
    error_page: /path_to_error_page.html
    ssl_enabled: False
    ssl_only: False
    ssl_letsencrypt_certs: '{{ nginx_letsencrypt_managed }}'
    root: {{ nginx_webroot }}
    server_tokens: 'off'
    proxy_standard_setup: True
    proxy_additional_options:
      - 'proxy_cache_path /tmp/nginx_cache levels=1:2 keys_zone=cache:30m max_size=250m;'
    locations:
      - location: /
        target: http://localhost:{{ local_http_port }}

Dependencies

If basic ldap authentication is required: git+https@gitea-s2i2s.isti.cnr.it:ISTI-ansible-roles/ansible-role-ldap-client-config.git

License

EUPL-1.2

Author Information

Andrea DellAmico, andrea.dellamico@isti.cnr.it