Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waldz/ansible-role.nginx
https://github.com/waldz/ansible-role.nginx
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/waldz/ansible-role.nginx
- Owner: Waldz
- Created: 2015-03-29T10:08:39.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T16:48:29.000Z (almost 9 years ago)
- Last Synced: 2024-11-09T21:48:37.755Z (2 months ago)
- Language: HTML
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
```