maruina.nginx
Ansible 角色: Nginx 0.1
从 Ansible Galaxy 下载
ansible-galaxy install maruina.nginx
用法
覆盖你需要更改的每个参数。
nginx_sites_available:
- my_blog
nginx_sites_enabled:
- my_blog
nginx_sites:
my_blog:
- listen 80
- root /var/www/my_blog
- server_name www.myblog.com
- location / {
option value;
}
my_second_website:
- listen 81
- root /var/www/another_root
- server_name samename.com
- location / {
autoindex on;
}
- 另一个 nginx 选项
示例剧本
- hosts: all
roles:
- { role: maruina.nginx }
许可证
MIT