jpnewman.nginx

jpnewman.nginx

Ansible Role Build Status

このAnsibleロールは、nginxプロキシを設定します。

要件

  • Ansible 2.x

ロール変数

geerlingguy.nginx

変数 説明 デフォルト
nginx_vhosts このラッパーロールではそのままにしてください。 []
nginx_remove_default_vhost このラッパーロールではそのままにしてください。 true

jpnewman.nginx | デフォルト

変数 説明 デフォルト
nginx_vhost_available_path /etc/nginx/sites-available
nginx_vhost_path /etc/nginx/sites-enabled

jpnewman.nginx | シンプルリバースプロキシテンプレート (nginx_reverse_proxy.conf.j2)

変数 説明 デフォルト
nginx_vhost_filename localhost
www_redirect false
listen_ports 80
host_aliases []
max_upload_size "1024m"
host_name localhost
redirect_http false
ssl_enabled false
ssl_listen_ports []
ssl_cert_path ""
ssl_key_path ""
proxy_pass_port 8080
server_auth_method ""
nginx_log_dir "/var/log/nginx"
nginx_error_log "{{ nginx_log_dir }}/error.log"
nginx_access_log "{{ nginx_log_dir }}/access.log"
nginx_template_file nginx_reverse_proxy.conf.j2

jpnewman.nginx | 複数のvhostテンプレート

変数 説明 デフォルト
nginx_vhosts_data
nginx_acl_rules

例については、このロール内の以下のファイルを参照してください: -

  • test\templates\defaults\artifactory.yml
  • test\templates\defaults\drupal.yml
  • test\templates\defaults\kibana_reverse_proxy.yml
  • test\templates\defaults\multiple_vhosts.yml

カスタムテンプレート

カスタムテンプレートは、変数nginx_template_fileを介して使用でき、必要な変数はhost_varsgroup_varsなどに配置します。

依存関係

  • geerlingguy.nginx

例のプレイブック

- hosts: servers
  roles:
     - { role: jpnewman.nginx, tags: ["nginx"] }

ライセンス

MIT / BSD

著者情報

ジョン・ポール・ニューマン

プロジェクトについて

Wrapper Role for geerlingguy.nginx

インストール
ansible-galaxy install jpnewman.nginx
ライセンス
mit
ダウンロード
5.5k
所有者
Software Engineer with DevOps working on both Windows and *nix.