Skip to content

Commit

Permalink
Merge pull request nickjj#1 from unboxed/master
Browse files Browse the repository at this point in the history
[New "nginx_ssl_manage_certs" variable]
  • Loading branch information
nickjj committed Aug 18, 2014
2 parents f2c8ada + 184d754 commit 400491f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ nginx_extra_locations: |
# # ... add as many directives as you want;
# }
# If this is false then your ssl cert/key is not transferred and none of the
# ssl values are output to your nginx config.
# If this is false then none of the ssl values are output to your nginx config.
nginx_ssl: false
# Set this to false if you have a separate role that manages copying
# SSL certificates/keys to the server, and don't want this role
# to attempt copying your SSL keys over
nginx_ssl_manage_certs: true
# What port should nginx listen on for https requests?
nginx_listen_ssl: 443
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ nginx_ssl_strict_transport_header_age: 15768000
nginx_ssl_session_cache: shared:SSL:10m
nginx_ssl_session_timeout: 10m

nginx_ssl_manage_certs: true
nginx_ssl_local_path: /home/yourname/dev/testproject/secrets
nginx_ssl_cert_name: sslcert.crt
nginx_ssl_key_name: sslkey.key
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
with_items:
- "{{ nginx_ssl_cert_name }}"
- "{{ nginx_ssl_key_name }}"
when: nginx_ssl
when: nginx_ssl and nginx_ssl_manage_certs
notify:
- reload nginx

Expand Down

0 comments on commit 400491f

Please sign in to comment.