Add support for Debian Buster (#163)

Closes #151
This commit is contained in:
Alessandro Fael Garcia 2019-08-07 22:16:27 +02:00 committed by GitHub
parent b2fc8b5621
commit a92d424bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 38 additions and 30 deletions

View File

@ -37,9 +37,9 @@ Debian:
versions: versions:
- jessie - jessie
- stretch - stretch
- buster
Ubuntu: Ubuntu:
versions: versions:
- trusty
- xenial - xenial
- bionic - bionic
SUSE/SLES: SUSE/SLES:
@ -73,6 +73,7 @@ Debian:
versions: versions:
- jessie - jessie
- stretch - stretch
- buster
FreeBSD: FreeBSD:
versions: versions:
- 11.2+ - 11.2+
@ -92,7 +93,6 @@ SUSE/SLES:
- 15 - 15
Ubuntu: Ubuntu:
versions: versions:
- trusty
- xenial - xenial
- bionic - bionic
``` ```
@ -164,6 +164,7 @@ Debian:
versions: versions:
- jessie - jessie
- stretch - stretch
- buster
Ubuntu: Ubuntu:
versions: versions:
- xenial - xenial

View File

@ -13,13 +13,14 @@ galaxy_info:
- name: Alpine - name: Alpine
versions: versions:
- all - all
- name: Amazon Linux - name: Amazon
versions: versions:
- candidate - Candidate
- name: Debian - name: Debian
versions: versions:
- jessie - jessie
- stretch - stretch
- buster
- name: EL - name: EL
versions: versions:
- 6 - 6
@ -30,7 +31,6 @@ galaxy_info:
- 12.0 - 12.0
- name: Ubuntu - name: Ubuntu
versions: versions:
- trusty
- xenial - xenial
- bionic - bionic
- name: SLES - name: SLES

View File

@ -16,6 +16,8 @@ platforms:
image: debian:jessie image: debian:jessie
- name: debian-stretch - name: debian-stretch
image: debian:stretch image: debian:stretch
- name: debian-buster
image: debian:buster
- name: ubuntu-xenial - name: ubuntu-xenial
image: ubuntu:xenial image: ubuntu:xenial
- name: ubuntu-bionic - name: ubuntu-bionic

View File

@ -19,6 +19,8 @@ platforms:
image: debian:jessie image: debian:jessie
- name: debian-stretch - name: debian-stretch
image: debian:stretch image: debian:stretch
- name: debian-buster
image: debian:buster
- name: ubuntu-xenial - name: ubuntu-xenial
image: ubuntu:xenial image: ubuntu:xenial
- name: ubuntu-bionic - name: ubuntu-bionic

View File

@ -19,6 +19,8 @@ platforms:
image: debian:jessie image: debian:jessie
- name: debian-stretch - name: debian-stretch
image: debian:stretch image: debian:stretch
- name: debian-buster
image: debian:buster
- name: ubuntu-xenial - name: ubuntu-xenial
image: ubuntu:xenial image: ubuntu:xenial
- name: ubuntu-bionic - name: ubuntu-bionic

View File

@ -16,6 +16,8 @@ platforms:
image: debian:jessie image: debian:jessie
- name: debian-stretch - name: debian-stretch
image: debian:stretch image: debian:stretch
- name: debian-buster
image: debian:buster
- name: ubuntu-xenial - name: ubuntu-xenial
image: ubuntu:xenial image: ubuntu:xenial
- name: ubuntu-bionic - name: ubuntu-bionic

View File

@ -4,7 +4,7 @@
path: "{{ item.value.html_file_location | default('/usr/share/nginx/html') }}" path: "{{ item.value.html_file_location | default('/usr/share/nginx/html') }}"
state: directory state: directory
with_dict: "{{ nginx_html_demo_template }}" with_dict: "{{ nginx_html_demo_template }}"
when: nginx_html_demo_template_enable when: nginx_html_demo_template_enable | bool
- name: "(Setup: All NGINX) Dynamically Generate HTML Files" - name: "(Setup: All NGINX) Dynamically Generate HTML Files"
template: template:
@ -12,20 +12,20 @@
dest: "{{ item.value.html_file_location | default('/usr/share/nginx/html') }}/{{ item.value.html_file_name | default('index.html') }}" dest: "{{ item.value.html_file_location | default('/usr/share/nginx/html') }}/{{ item.value.html_file_name | default('index.html') }}"
backup: yes backup: yes
with_dict: "{{ nginx_html_demo_template }}" with_dict: "{{ nginx_html_demo_template }}"
when: nginx_html_demo_template_enable when: nginx_html_demo_template_enable | bool
- name: "(Setup: All NGINX) Ensure NGINX Main Directory Exists" - name: "(Setup: All NGINX) Ensure NGINX Main Directory Exists"
file: file:
path: "{{ nginx_main_template.conf_file_location | default('/etc/nginx') }}" path: "{{ nginx_main_template.conf_file_location | default('/etc/nginx') }}"
state: directory state: directory
when: nginx_main_template_enable when: nginx_main_template_enable | bool
- name: "(Setup: All NGINX) Dynamically Generate NGINX Main Configuration File" - name: "(Setup: All NGINX) Dynamically Generate NGINX Main Configuration File"
template: template:
src: "{{ nginx_main_template.template_file | default('nginx.conf.j2') }}" src: "{{ nginx_main_template.template_file | default('nginx.conf.j2') }}"
dest: "{{ nginx_main_template.conf_file_location | default('/etc/nginx') }}/{{ nginx_main_template.conf_file_name | default('nginx.conf') }}" dest: "{{ nginx_main_template.conf_file_location | default('/etc/nginx') }}/{{ nginx_main_template.conf_file_name | default('nginx.conf') }}"
backup: yes backup: yes
when: nginx_main_template_enable when: nginx_main_template_enable | bool
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
- name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists" - name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
@ -33,7 +33,7 @@
path: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/') }}" path: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/') }}"
state: directory state: directory
with_dict: "{{ nginx_http_template }}" with_dict: "{{ nginx_http_template }}"
when: nginx_http_template_enable when: nginx_http_template_enable | bool
- name: "(Setup: All NGINX) Ensure NGINX Proxy Cache Directories Exist" - name: "(Setup: All NGINX) Ensure NGINX Proxy Cache Directories Exist"
file: file:
@ -44,7 +44,7 @@
- "{{ nginx_http_template }}" - "{{ nginx_http_template }}"
- reverse_proxy.proxy_cache_path - reverse_proxy.proxy_cache_path
- skip_missing: true - skip_missing: true
when: nginx_http_template_enable when: nginx_http_template_enable | bool
- name: "(Setup: All NGINX) Dynamically Generate NGINX HTTP Configuration Files" - name: "(Setup: All NGINX) Dynamically Generate NGINX HTTP Configuration Files"
template: template:
@ -52,23 +52,24 @@
dest: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/') }}/{{ item.value.conf_file_name | default('default.conf') }}" dest: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/') }}/{{ item.value.conf_file_name | default('default.conf') }}"
backup: yes backup: yes
with_dict: "{{ nginx_http_template }}" with_dict: "{{ nginx_http_template }}"
when: nginx_http_template_enable when: nginx_http_template_enable | bool
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
- name: "(Setup: All NGINX) Dynamically Generate NGINX API Configuration File" - name: "(Setup: All NGINX) Dynamically Generate NGINX API Configuration File"
template: template:
src: "{{ nginx_rest_api_src | default('http/api.conf.j2') }}" src: "{{ nginx_rest_api_src | default('http/api.conf.j2') }}"
dest: "{{ nginx_rest_api_location | default('/etc/nginx/conf.d/api.conf') }}" dest: "{{ nginx_rest_api_location | default('/etc/nginx/conf.d/api.conf') }}"
backup: yes backup: yes
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
when: nginx_rest_api_enable when: nginx_rest_api_enable | bool
- name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists" - name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
file: file:
path: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/stream/') }}" path: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/stream/') }}"
state: directory state: directory
with_dict: "{{ nginx_stream_template }}" with_dict: "{{ nginx_stream_template }}"
when: nginx_stream_template_enable when: nginx_stream_template_enable | bool
- name: "(Setup: All NGINX) Dynamically Generate NGINX Stream Configuration Files" - name: "(Setup: All NGINX) Dynamically Generate NGINX Stream Configuration Files"
template: template:
@ -76,5 +77,5 @@
dest: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/stream/') }}/{{ item.value.conf_file_name | default('default.conf') }}" dest: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/stream/') }}/{{ item.value.conf_file_name | default('default.conf') }}"
backup: yes backup: yes
with_dict: "{{ nginx_stream_template }}" with_dict: "{{ nginx_stream_template }}"
when: nginx_stream_template_enable
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
when: nginx_stream_template_enable | bool

View File

@ -3,21 +3,21 @@
file: file:
path: "{{ nginx_main_upload_dest | default('/etc/nginx/') }}" path: "{{ nginx_main_upload_dest | default('/etc/nginx/') }}"
state: directory state: directory
when: nginx_main_upload_enable when: nginx_main_upload_enable | bool
- name: "(Setup: All NGINX) Upload NGINX Main Configuration File" - name: "(Setup: All NGINX) Upload NGINX Main Configuration File"
copy: copy:
src: "{{ nginx_main_upload_src | default('conf/nginx.conf') }}" src: "{{ nginx_main_upload_src | default('conf/nginx.conf') }}"
dest: "{{ nginx_main_upload_dest | default('/etc/nginx/') }}" dest: "{{ nginx_main_upload_dest | default('/etc/nginx/') }}"
backup: yes backup: yes
when: nginx_main_upload_enable | bool
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
when: nginx_main_upload_enable
- name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists" - name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
file: file:
path: "{{ nginx_http_upload_dest | default('/etc/nginx/conf.d/') }}" path: "{{ nginx_http_upload_dest | default('/etc/nginx/conf.d/') }}"
state: directory state: directory
when: nginx_http_upload_enable when: nginx_http_upload_enable | bool
- name: "(Setup: All NGINX) Upload NGINX HTTP Configuration Files" - name: "(Setup: All NGINX) Upload NGINX HTTP Configuration Files"
copy: copy:
@ -25,14 +25,14 @@
dest: "{{ nginx_http_upload_dest | default('/etc/nginx/conf.d/') }}" dest: "{{ nginx_http_upload_dest | default('/etc/nginx/conf.d/') }}"
backup: yes backup: yes
with_fileglob: "{{ nginx_http_upload_src }}" with_fileglob: "{{ nginx_http_upload_src }}"
when: nginx_http_upload_enable | bool
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
when: nginx_http_upload_enable
- name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists" - name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
file: file:
path: "{{ nginx_stream_upload_dest | default('/etc/nginx/conf.d/') }}" path: "{{ nginx_stream_upload_dest | default('/etc/nginx/conf.d/') }}"
state: directory state: directory
when: nginx_stream_upload_enable when: nginx_stream_upload_enable | bool
- name: "(Setup: All NGINX) Upload NGINX Stream Configuration Files" - name: "(Setup: All NGINX) Upload NGINX Stream Configuration Files"
copy: copy:
@ -40,14 +40,14 @@
dest: "{{ nginx_stream_upload_dest | default('/etc/nginx/conf.d/') }}" dest: "{{ nginx_stream_upload_dest | default('/etc/nginx/conf.d/') }}"
backup: yes backup: yes
with_fileglob: "{{ nginx_stream_upload_src }}" with_fileglob: "{{ nginx_stream_upload_src }}"
when: nginx_stream_upload_enable | bool
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
when: nginx_stream_upload_enable
- name: "(Setup: All NGINX) Ensure NGINX HTML Directory Exists" - name: "(Setup: All NGINX) Ensure NGINX HTML Directory Exists"
file: file:
path: "{{ nginx_html_upload_dest | default('/usr/share/nginx/html') }}" path: "{{ nginx_html_upload_dest | default('/usr/share/nginx/html') }}"
state: directory state: directory
when: nginx_html_upload_enable when: nginx_html_upload_enable | bool
- name: "(Setup: All NGINX) Upload NGINX HTML Files" - name: "(Setup: All NGINX) Upload NGINX HTML Files"
copy: copy:
@ -55,20 +55,20 @@
dest: "{{ nginx_html_upload_dest | default('/usr/share/nginx/html') }}" dest: "{{ nginx_html_upload_dest | default('/usr/share/nginx/html') }}"
backup: yes backup: yes
with_fileglob: "{{ nginx_html_upload_src }}" with_fileglob: "{{ nginx_html_upload_src }}"
when: nginx_html_upload_enable | bool
notify: "(Handler: All OSs) Reload NGINX" notify: "(Handler: All OSs) Reload NGINX"
when: nginx_html_upload_enable
- name: "(Setup: All NGINX) Ensure SSL Certificate Directory Exists" - name: "(Setup: All NGINX) Ensure SSL Certificate Directory Exists"
file: file:
path: "{{ nginx_ssl_crt_upload_dest | default('/etc/ssl/certs/') }}" path: "{{ nginx_ssl_crt_upload_dest | default('/etc/ssl/certs/') }}"
state: directory state: directory
when: nginx_ssl_upload_enable when: nginx_ssl_upload_enable | bool
- name: "(Setup: All NGINX) Ensure SSL Key Directory Exists" - name: "(Setup: All NGINX) Ensure SSL Key Directory Exists"
file: file:
path: "{{ nginx_ssl_key_upload_dest | default('/etc/ssl/private/') }}" path: "{{ nginx_ssl_key_upload_dest | default('/etc/ssl/private/') }}"
state: directory state: directory
when: nginx_ssl_upload_enable when: nginx_ssl_upload_enable | bool
- name: "(Setup: All NGINX) Upload NGINX SSL Certificates" - name: "(Setup: All NGINX) Upload NGINX SSL Certificates"
copy: copy:
@ -78,7 +78,7 @@
decrypt: yes decrypt: yes
backup: yes backup: yes
with_fileglob: "{{ nginx_ssl_crt_upload_src }}" with_fileglob: "{{ nginx_ssl_crt_upload_src }}"
when: nginx_ssl_upload_enable when: nginx_ssl_upload_enable | bool
- name: "(Setup: All NGINX) Upload NGINX SSL Keys" - name: "(Setup: All NGINX) Upload NGINX SSL Keys"
copy: copy:
@ -88,4 +88,4 @@
decrypt: yes decrypt: yes
backup: yes backup: yes
with_fileglob: "{{ nginx_ssl_key_upload_src }}" with_fileglob: "{{ nginx_ssl_key_upload_src }}"
when: nginx_ssl_upload_enable when: nginx_ssl_upload_enable | bool

View File

@ -1,9 +1,7 @@
--- ---
- name: "(Install: APT OSs) Set Default APT NGINX Signing Key URL" - name: "(Install: APT OSs) Set Default APT NGINX Signing Key URL"
set_fact: set_fact:
default_keysite: >- default_keysite: https://nginx.org/keys/nginx_signing.key
{{ (ansible_distribution_release == 'trusty')
| ternary('http://nginx.org/keys/nginx_signing.key', 'https://nginx.org/keys/nginx_signing.key') }}
- name: "(Install: APT OSs) Set APT NGINX Signing Key URL" - name: "(Install: APT OSs) Set APT NGINX Signing Key URL"
set_fact: set_fact: