File tree 15 files changed +30
-67
lines changed
.github/workflows/requirements
15 files changed +30
-67
lines changed Original file line number Diff line number Diff line change 1
1
ansible-core==2.12.1
2
2
jinja2==3.0.3
3
- ansible-lint==5.3.1
3
+ ansible-lint==5.3.2
4
4
yamllint==1.26.3
5
5
molecule[docker]==3.5.2
6
6
docker==5.0.3
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.23.0 (Unreleased)
4
+
5
+ BREAKING CHANGES:
6
+
7
+ CentOS 8 has reached EoL and has thus been removed from the list of supported platforms.
8
+
9
+ BUG FIXES:
10
+
11
+ The Molecule ` upgrade ` scenario verification test no longer has to be updated on each new NGINX OSS release.
12
+
3
13
## 0.22.0 (December 9, 2021)
4
14
5
15
BREAKING CHANGES:
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ Amazon Linux:
81
81
- 2
82
82
CentOS:
83
83
- 7.4+
84
- - 8
85
84
Debian:
86
85
- buster (10)
87
86
- bullseye (11)
@@ -109,7 +108,6 @@ Amazon Linux 2:
109
108
- any
110
109
CentOS:
111
110
- 7.4+
112
- - 8
113
111
Debian:
114
112
- buster (10)
115
113
- bullseye (11)
Original file line number Diff line number Diff line change 4
4
pre_tasks :
5
5
- name : Set repo if Alpine
6
6
set_fact :
7
- version : " =1.21.4 -r1"
7
+ version : " =1.21.5 -r1"
8
8
when : ansible_facts['os_family'] == "Alpine"
9
9
- name : Set repo if Debian
10
10
set_fact :
11
- version : " =1.21.4 -1~{{ ansible_facts['distribution_release'] }}"
11
+ version : " =1.21.5 -1~{{ ansible_facts['distribution_release'] }}"
12
12
when : ansible_facts['os_family'] == "Debian"
13
13
- name : Set repo if Red Hat
14
14
set_fact :
15
- version : " -1.21.4 -1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
15
+ version : " -1.21.5 -1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
16
16
when : ansible_facts['os_family'] == "RedHat"
17
17
- name : Enable NGINX @CentOS-AppStream dnf modules
18
18
shell :
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ platforms:
48
48
volumes :
49
49
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
50
command : " /usr/sbin/init"
51
- - name : centos-8
52
- image : centos:8
53
- dockerfile : ../common/Dockerfile.j2
54
- privileged : true
55
- volumes :
56
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
- command : " /usr/sbin/init"
58
51
- name : debian-buster
59
52
image : debian:buster-slim
60
53
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change 30
30
chdir : " {{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
31
31
changed_when : false
32
32
register : version
33
- failed_when : version is not search('1.21.4 ')
33
+ failed_when : version is not search('1.21.5 ')
Original file line number Diff line number Diff line change @@ -41,13 +41,6 @@ platforms:
41
41
volumes :
42
42
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
43
43
command : " /usr/sbin/init"
44
- - name : centos-8
45
- image : centos:8
46
- dockerfile : ../common/Dockerfile.j2
47
- privileged : true
48
- volumes :
49
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
- command : " /usr/sbin/init"
51
44
- name : debian-buster
52
45
image : debian:buster-slim
53
46
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ platforms:
48
48
volumes :
49
49
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
50
command : " /usr/sbin/init"
51
- - name : centos-8
52
- image : centos:8
53
- dockerfile : ../common/Dockerfile.j2
54
- privileged : true
55
- volumes :
56
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
- command : " /usr/sbin/init"
58
51
- name : debian-buster
59
52
image : debian:buster-slim
60
53
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ platforms:
48
48
volumes :
49
49
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
50
command : " /usr/sbin/init"
51
- - name : centos-8
52
- image : centos:8
53
- dockerfile : ../common/Dockerfile.j2
54
- privileged : true
55
- volumes :
56
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
- command : " /usr/sbin/init"
58
51
- name : debian-buster
59
52
image : debian:buster-slim
60
53
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ platforms:
48
48
volumes :
49
49
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
50
command : " /usr/sbin/init"
51
- - name : centos-8
52
- image : centos:8
53
- dockerfile : ../common/Dockerfile.j2
54
- privileged : true
55
- volumes :
56
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
- command : " /usr/sbin/init"
58
51
- name : debian-buster
59
52
image : debian:buster-slim
60
53
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ platforms:
48
48
volumes :
49
49
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
50
command : " /usr/sbin/init"
51
- - name : centos-8
52
- image : centos:8
53
- dockerfile : ../common/Dockerfile.j2
54
- privileged : true
55
- volumes :
56
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
- command : " /usr/sbin/init"
58
51
- name : debian-buster
59
52
image : debian:buster-slim
60
53
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change @@ -48,13 +48,6 @@ platforms:
48
48
volumes :
49
49
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
50
50
command : " /usr/sbin/init"
51
- - name : centos-8
52
- image : centos:8
53
- dockerfile : ../common/Dockerfile.j2
54
- privileged : true
55
- volumes :
56
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
- command : " /usr/sbin/init"
58
51
- name : debian-buster
59
52
image : debian:buster-slim
60
53
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change @@ -20,13 +20,6 @@ platforms:
20
20
volumes :
21
21
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
22
22
command : " /usr/sbin/init"
23
- - name : centos-8
24
- image : centos:8
25
- dockerfile : ../common/Dockerfile.j2
26
- privileged : true
27
- volumes :
28
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
29
- command : " /usr/sbin/init"
30
23
- name : debian-buster
31
24
image : debian:buster-slim
32
25
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change 4
4
pre_tasks :
5
5
- name : Set repo if Alpine
6
6
set_fact :
7
- version : " =1.21.3 -r1"
7
+ version : " =1.21.5 -r1"
8
8
when : ansible_facts['os_family'] == "Alpine"
9
9
- name : Set repo if Debian
10
10
set_fact :
11
- version : " =1.21.3 -1~{{ ansible_facts['distribution_release'] }}"
11
+ version : " =1.21.5 -1~{{ ansible_facts['distribution_release'] }}"
12
12
when : ansible_facts['os_family'] == "Debian"
13
13
- name : Set repo if Red Hat
14
14
set_fact :
15
- version : " -1.21.3 -1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
15
+ version : " -1.21.5 -1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
16
16
when : ansible_facts['os_family'] == "RedHat"
17
17
- name : Enable NGINX @CentOS-AppStream dnf modules
18
18
shell :
Original file line number Diff line number Diff line change 24
24
url : http://localhost
25
25
status_code : 200
26
26
27
+ - name : Fetch NGINX version
28
+ uri :
29
+ url : https://version.nginx.com/nginx/mainline
30
+ return_content : true
31
+ check_mode : false
32
+ register : nginx_versions
33
+
34
+ - name : Set NGINX version
35
+ set_fact :
36
+ nginx_version : " {{ nginx_versions.content | regex_search('([0-9]+\\ .){2}[0-9]+') }}"
37
+
27
38
- name : Verify NGINX has been upgraded
28
39
command : nginx -v
29
40
args :
30
41
chdir : " {{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
31
42
changed_when : false
32
43
register : version
33
- failed_when : version is not search('1.21.4' )
44
+ failed_when : version is not search(nginx_version )
You can’t perform that action at this time.
0 commit comments