ggiinnoo.nginx

NGINX

这个角色是为所列操作系统提供简单的 nginx 安装程序。 它易于配置,并允许通过简单的变量覆盖来完全替代 nginx.conf。

CI 测试

Ansible 角色 nginx


示例剧本

- hosts: webservers
  vars_files:
    - vars/main.yml
  roles:
    - role: ggiinnoo.nginx
      tags: [nginx]

变量

# 您想要哪个版本。稳定版还是主线版 | 仅在安装过程中使用
nginxRedHatRelease: stable

nginxServicePort: 80
nginxServiceSecurePort: 443

# 关闭服务器签名?
nginxServiceSignatures: true

# server_names_hash_bucket_size
nginxServerNameHashBucketSize: 256

nginxErrorLog: "/var/log/nginx/error.log"
nginxAccessLog: "/var/log/nginx/access.log"

nginxConfLocationDest: "/etc/nginx/nginx.conf"
nginxConfLocationSrc: "{{ role_path }}/templates/nginxRedHat.conf.j2"

即将推出的功能

  • 管理 conf.d 文件夹

关于项目

Configure nginx

安装
ansible-galaxy install ggiinnoo.nginx
许可证
Unknown
下载
2.6k
拥有者
Code doesn't scare me.. The server does.