Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/angristan/ansible-nginx
Ansible role for Nginx
https://github.com/angristan/ansible-nginx
ansible ansible-role debian nginx ubuntu
Last synced: 23 days ago
JSON representation
Ansible role for Nginx
- Host: GitHub
- URL: https://github.com/angristan/ansible-nginx
- Owner: angristan
- License: mit
- Created: 2019-02-13T01:17:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T17:26:00.000Z (almost 5 years ago)
- Last Synced: 2025-01-19T22:16:16.446Z (26 days ago)
- Topics: ansible, ansible-role, debian, nginx, ubuntu
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role for Nginx
This is a role I made for myself but I tried to make it as reusable as possible while keeping it fitted to my use.
The role will install Nginx from the official APT **stable** repository for Debian or Ubuntu.
It will do some basic configuration like:
- Setting up nginx.conf
- Setting up the logrotate
- Setting up a default vhost
- Seeting up vhosts trough variables.All the variables are in `defaults/main.yml`.
## Sample playbook
```yaml
---- hosts: myhost
roles: nginx
vars:
nginx_server_tokens: 'off'
nginx_logrotate_rotate: 7
nginx_vhosts:
- name: 'blog'
hostname: 'domain.tld'
template: 'blog.j2'
```