Skip to content

Commit a92d424

Browse files
authored
Add support for Debian Buster (#163)
Closes #151
1 parent b2fc8b5 commit a92d424

File tree

9 files changed

+38
-30
lines changed

9 files changed

+38
-30
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ Debian:
3737
versions:
3838
- jessie
3939
- stretch
40+
- buster
4041
Ubuntu:
4142
versions:
42-
- trusty
4343
- xenial
4444
- bionic
4545
SUSE/SLES:
@@ -73,6 +73,7 @@ Debian:
7373
versions:
7474
- jessie
7575
- stretch
76+
- buster
7677
FreeBSD:
7778
versions:
7879
- 11.2+
@@ -92,7 +93,6 @@ SUSE/SLES:
9293
- 15
9394
Ubuntu:
9495
versions:
95-
- trusty
9696
- xenial
9797
- bionic
9898
```
@@ -164,6 +164,7 @@ Debian:
164164
versions:
165165
- jessie
166166
- stretch
167+
- buster
167168
Ubuntu:
168169
versions:
169170
- xenial

meta/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ galaxy_info:
1313
- name: Alpine
1414
versions:
1515
- all
16-
- name: Amazon Linux
16+
- name: Amazon
1717
versions:
18-
- candidate
18+
- Candidate
1919
- name: Debian
2020
versions:
2121
- jessie
2222
- stretch
23+
- buster
2324
- name: EL
2425
versions:
2526
- 6
@@ -30,7 +31,6 @@ galaxy_info:
3031
- 12.0
3132
- name: Ubuntu
3233
versions:
33-
- trusty
3434
- xenial
3535
- bionic
3636
- name: SLES

molecule/default/molecule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ platforms:
1616
image: debian:jessie
1717
- name: debian-stretch
1818
image: debian:stretch
19+
- name: debian-buster
20+
image: debian:buster
1921
- name: ubuntu-xenial
2022
image: ubuntu:xenial
2123
- name: ubuntu-bionic

molecule/stable_push/molecule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ platforms:
1919
image: debian:jessie
2020
- name: debian-stretch
2121
image: debian:stretch
22+
- name: debian-buster
23+
image: debian:buster
2224
- name: ubuntu-xenial
2325
image: ubuntu:xenial
2426
- name: ubuntu-bionic

molecule/template_module/molecule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ platforms:
1919
image: debian:jessie
2020
- name: debian-stretch
2121
image: debian:stretch
22+
- name: debian-buster
23+
image: debian:buster
2224
- name: ubuntu-xenial
2325
image: ubuntu:xenial
2426
- name: ubuntu-bionic

molecule/unit/molecule.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ platforms:
1616
image: debian:jessie
1717
- name: debian-stretch
1818
image: debian:stretch
19+
- name: debian-buster
20+
image: debian:buster
1921
- name: ubuntu-xenial
2022
image: ubuntu:xenial
2123
- name: ubuntu-bionic

tasks/conf/template-config.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,36 @@
44
path: "{{ item.value.html_file_location | default('/usr/share/nginx/html') }}"
55
state: directory
66
with_dict: "{{ nginx_html_demo_template }}"
7-
when: nginx_html_demo_template_enable
7+
when: nginx_html_demo_template_enable | bool
88

99
- name: "(Setup: All NGINX) Dynamically Generate HTML Files"
1010
template:
1111
src: "{{ item.value.template_file | default('www/index.html.j2') }}"
1212
dest: "{{ item.value.html_file_location | default('/usr/share/nginx/html') }}/{{ item.value.html_file_name | default('index.html') }}"
1313
backup: yes
1414
with_dict: "{{ nginx_html_demo_template }}"
15-
when: nginx_html_demo_template_enable
15+
when: nginx_html_demo_template_enable | bool
1616

1717
- name: "(Setup: All NGINX) Ensure NGINX Main Directory Exists"
1818
file:
1919
path: "{{ nginx_main_template.conf_file_location | default('/etc/nginx') }}"
2020
state: directory
21-
when: nginx_main_template_enable
21+
when: nginx_main_template_enable | bool
2222

2323
- name: "(Setup: All NGINX) Dynamically Generate NGINX Main Configuration File"
2424
template:
2525
src: "{{ nginx_main_template.template_file | default('nginx.conf.j2') }}"
2626
dest: "{{ nginx_main_template.conf_file_location | default('/etc/nginx') }}/{{ nginx_main_template.conf_file_name | default('nginx.conf') }}"
2727
backup: yes
28-
when: nginx_main_template_enable
28+
when: nginx_main_template_enable | bool
2929
notify: "(Handler: All OSs) Reload NGINX"
3030

3131
- name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
3232
file:
3333
path: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/') }}"
3434
state: directory
3535
with_dict: "{{ nginx_http_template }}"
36-
when: nginx_http_template_enable
36+
when: nginx_http_template_enable | bool
3737

3838
- name: "(Setup: All NGINX) Ensure NGINX Proxy Cache Directories Exist"
3939
file:
@@ -44,37 +44,38 @@
4444
- "{{ nginx_http_template }}"
4545
- reverse_proxy.proxy_cache_path
4646
- skip_missing: true
47-
when: nginx_http_template_enable
47+
when: nginx_http_template_enable | bool
4848

4949
- name: "(Setup: All NGINX) Dynamically Generate NGINX HTTP Configuration Files"
5050
template:
5151
src: "{{ item.value.template_file | default('http/default.conf.j2') }}"
5252
dest: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/') }}/{{ item.value.conf_file_name | default('default.conf') }}"
5353
backup: yes
5454
with_dict: "{{ nginx_http_template }}"
55-
when: nginx_http_template_enable
55+
when: nginx_http_template_enable | bool
5656
notify: "(Handler: All OSs) Reload NGINX"
5757

58+
5859
- name: "(Setup: All NGINX) Dynamically Generate NGINX API Configuration File"
5960
template:
6061
src: "{{ nginx_rest_api_src | default('http/api.conf.j2') }}"
6162
dest: "{{ nginx_rest_api_location | default('/etc/nginx/conf.d/api.conf') }}"
6263
backup: yes
6364
notify: "(Handler: All OSs) Reload NGINX"
64-
when: nginx_rest_api_enable
65+
when: nginx_rest_api_enable | bool
6566

6667
- name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
6768
file:
6869
path: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/stream/') }}"
6970
state: directory
7071
with_dict: "{{ nginx_stream_template }}"
71-
when: nginx_stream_template_enable
72+
when: nginx_stream_template_enable | bool
7273

7374
- name: "(Setup: All NGINX) Dynamically Generate NGINX Stream Configuration Files"
7475
template:
7576
src: "{{ item.value.template_file | default('stream/default.conf.j2') }}"
7677
dest: "{{ item.value.conf_file_location | default('/etc/nginx/conf.d/stream/') }}/{{ item.value.conf_file_name | default('default.conf') }}"
7778
backup: yes
7879
with_dict: "{{ nginx_stream_template }}"
79-
when: nginx_stream_template_enable
8080
notify: "(Handler: All OSs) Reload NGINX"
81+
when: nginx_stream_template_enable | bool

tasks/conf/upload-config.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,72 +3,72 @@
33
file:
44
path: "{{ nginx_main_upload_dest | default('/etc/nginx/') }}"
55
state: directory
6-
when: nginx_main_upload_enable
6+
when: nginx_main_upload_enable | bool
77

88
- name: "(Setup: All NGINX) Upload NGINX Main Configuration File"
99
copy:
1010
src: "{{ nginx_main_upload_src | default('conf/nginx.conf') }}"
1111
dest: "{{ nginx_main_upload_dest | default('/etc/nginx/') }}"
1212
backup: yes
13+
when: nginx_main_upload_enable | bool
1314
notify: "(Handler: All OSs) Reload NGINX"
14-
when: nginx_main_upload_enable
1515

1616
- name: "(Setup: All NGINX) Ensure NGINX HTTP Directory Exists"
1717
file:
1818
path: "{{ nginx_http_upload_dest | default('/etc/nginx/conf.d/') }}"
1919
state: directory
20-
when: nginx_http_upload_enable
20+
when: nginx_http_upload_enable | bool
2121

2222
- name: "(Setup: All NGINX) Upload NGINX HTTP Configuration Files"
2323
copy:
2424
src: "{{ item }}"
2525
dest: "{{ nginx_http_upload_dest | default('/etc/nginx/conf.d/') }}"
2626
backup: yes
2727
with_fileglob: "{{ nginx_http_upload_src }}"
28+
when: nginx_http_upload_enable | bool
2829
notify: "(Handler: All OSs) Reload NGINX"
29-
when: nginx_http_upload_enable
3030

3131
- name: "(Setup: All NGINX) Ensure NGINX Stream Directory Exists"
3232
file:
3333
path: "{{ nginx_stream_upload_dest | default('/etc/nginx/conf.d/') }}"
3434
state: directory
35-
when: nginx_stream_upload_enable
35+
when: nginx_stream_upload_enable | bool
3636

3737
- name: "(Setup: All NGINX) Upload NGINX Stream Configuration Files"
3838
copy:
3939
src: "{{ item }}"
4040
dest: "{{ nginx_stream_upload_dest | default('/etc/nginx/conf.d/') }}"
4141
backup: yes
4242
with_fileglob: "{{ nginx_stream_upload_src }}"
43+
when: nginx_stream_upload_enable | bool
4344
notify: "(Handler: All OSs) Reload NGINX"
44-
when: nginx_stream_upload_enable
4545

4646
- name: "(Setup: All NGINX) Ensure NGINX HTML Directory Exists"
4747
file:
4848
path: "{{ nginx_html_upload_dest | default('/usr/share/nginx/html') }}"
4949
state: directory
50-
when: nginx_html_upload_enable
50+
when: nginx_html_upload_enable | bool
5151

5252
- name: "(Setup: All NGINX) Upload NGINX HTML Files"
5353
copy:
5454
src: "{{ item }}"
5555
dest: "{{ nginx_html_upload_dest | default('/usr/share/nginx/html') }}"
5656
backup: yes
5757
with_fileglob: "{{ nginx_html_upload_src }}"
58+
when: nginx_html_upload_enable | bool
5859
notify: "(Handler: All OSs) Reload NGINX"
59-
when: nginx_html_upload_enable
6060

6161
- name: "(Setup: All NGINX) Ensure SSL Certificate Directory Exists"
6262
file:
6363
path: "{{ nginx_ssl_crt_upload_dest | default('/etc/ssl/certs/') }}"
6464
state: directory
65-
when: nginx_ssl_upload_enable
65+
when: nginx_ssl_upload_enable | bool
6666

6767
- name: "(Setup: All NGINX) Ensure SSL Key Directory Exists"
6868
file:
6969
path: "{{ nginx_ssl_key_upload_dest | default('/etc/ssl/private/') }}"
7070
state: directory
71-
when: nginx_ssl_upload_enable
71+
when: nginx_ssl_upload_enable | bool
7272

7373
- name: "(Setup: All NGINX) Upload NGINX SSL Certificates"
7474
copy:
@@ -78,7 +78,7 @@
7878
decrypt: yes
7979
backup: yes
8080
with_fileglob: "{{ nginx_ssl_crt_upload_src }}"
81-
when: nginx_ssl_upload_enable
81+
when: nginx_ssl_upload_enable | bool
8282

8383
- name: "(Setup: All NGINX) Upload NGINX SSL Keys"
8484
copy:
@@ -88,4 +88,4 @@
8888
decrypt: yes
8989
backup: yes
9090
with_fileglob: "{{ nginx_ssl_key_upload_src }}"
91-
when: nginx_ssl_upload_enable
91+
when: nginx_ssl_upload_enable | bool

tasks/keys/apt-key.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
- name: "(Install: APT OSs) Set Default APT NGINX Signing Key URL"
33
set_fact:
4-
default_keysite: >-
5-
{{ (ansible_distribution_release == 'trusty')
6-
| ternary('http://nginx.org/keys/nginx_signing.key', 'https://nginx.org/keys/nginx_signing.key') }}
4+
default_keysite: https://nginx.org/keys/nginx_signing.key
75

86
- name: "(Install: APT OSs) Set APT NGINX Signing Key URL"
97
set_fact:

0 commit comments

Comments
 (0)