Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waldz/ansible-role.nginx


https://github.com/waldz/ansible-role.nginx

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# ansible-role.nginx

Install
========
```
git submodule add [email protected]:Waldz/ansible-role.nginx.git roles/nginx
git submodule add [email protected]:weareinteractive/ansible-openssl.git roles/openssl
```

Example
========
```
- name: Basic configuration to all servers
hosts: all
sudo: true
roles:
- role: openssl
- role: nginx
```

Variables
========
group_vars/all.yml
```
---

# Nginx setup
nginx:
default_ssl_cert: "{{ openssl_certs_path }}/{{ fqdn }}.crt"
default_ssl_key: "{{ openssl_keys_path }}/{{ fqdn }}.key"

# SSL certificates for Nginx
openssl_certs_path: /etc/nginx/ssl
openssl_keys_path: /etc/nginx/ssl
openssl_self_signed:
- {
name: "{{ ansible_fqdn }}",
domains: ["{{ fqdn }}", "*.{{ ansible_fqdn }}"],
country: 'US',
state: 'California',
city: 'Los Angeles',
organization: 'JSC Organization',
unit: '',
email: '[email protected]',
days: 3650
}
```