ansiblebit.nginx

Ansible 角色: Nginx 0.1

构建状态
这是一个配置 nginx 的 Ansible 角色。

从 Ansible Galaxy 下载

ansible-galaxy install maruina.nginx

使用方法

重写你需要修改的每个参数。

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

关于项目

Configure nginx

安装
ansible-galaxy install ansiblebit.nginx
许可证
mit
下载
132
拥有者