1
0
Fork 0

First functional nginx version

This commit is contained in:
Chl 2020-01-18 01:04:37 +01:00
parent 0a5c2cfc35
commit dc7af699ee
11 changed files with 183 additions and 4 deletions

View file

@ -18,3 +18,14 @@
shell: etckeeper unclean && echo "Uncommitted changes." && return 1 || return 0
changed_when: False
when: etckeeper_installed
# Autodetect if we can use HTTPS in Nginx and jenkinsUrl configs
- name: Autodetect SSL - look up certificate existence on remote host
stat:
path: "{{ nginx_vhost_ssl_certificate_file }}"
register: result
when: nginx_vhost_ssl is undefined or nginx_vhost_ssl == None
- name: Autodetect SSL - set fact
set_fact:
nginx_vhost_ssl: "{{ result.stat.exists is defined and result.stat.exists }}"
when: nginx_vhost_ssl is undefined or nginx_vhost_ssl == None