File tree Expand file tree Collapse file tree 17 files changed +110
-108
lines changed
.github/workflows/requirements Expand file tree Collapse file tree 17 files changed +110
-108
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
skip_list:
3
+ - name[template]
3
4
- yaml[line-length]
Original file line number Diff line number Diff line change 1
1
ansible-core==2.13.4
2
2
jinja2==3.1.2
3
- ansible-lint==6.5.2
3
+ ansible-lint==6.7.0
4
4
yamllint==1.28.0
5
5
molecule[docker]==4.0.1
6
6
docker==6.0.0
Original file line number Diff line number Diff line change 29
29
* Add SLES 15 to all Molecule tests.
30
30
* Create downgrade and upgrade tests for NGINX Plus.
31
31
* Remove Yamllint (Ansible Lint now incorporates Yamllint).
32
- * Skip Ansible Lint line length rule .
32
+ * Skip Ansible Lint line length and no templates in name rules. Slightly refactor code to incorporate changes added to Ansible Lint 6.7.0 .
33
33
34
34
## 0.23.1 (April 6, 2022)
35
35
Original file line number Diff line number Diff line change 3
3
hosts : localhost
4
4
gather_facts : false
5
5
tasks :
6
- - name : Create ephemeral license certificate file from b64 decoded env var
6
+ - name : Create ephemeral license certificate file from b64 decoded env var # noqa template-instead-of-copy
7
7
ansible.builtin.copy :
8
8
content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
9
9
dest : ../../files/license/nginx-repo.crt
10
10
force : false
11
11
mode : 0444
12
12
13
- - name : Create ephemeral license key file from b64 decoded env var
13
+ - name : Create ephemeral license key file from b64 decoded env var # noqa template-instead-of-copy
14
14
ansible.builtin.copy :
15
15
content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
16
16
dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 3
3
hosts : localhost
4
4
gather_facts : false
5
5
tasks :
6
- - name : Create ephemeral license certificate file from b64 decoded env var
6
+ - name : Create ephemeral license certificate file from b64 decoded env var # noqa template-instead-of-copy
7
7
ansible.builtin.copy :
8
8
content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
9
9
dest : ../../files/license/nginx-repo.crt
10
10
force : false
11
11
mode : 0444
12
12
13
- - name : Create ephemeral license key file from b64 decoded env var
13
+ - name : Create ephemeral license key file from b64 decoded env var # noqa template-instead-of-copy
14
14
ansible.builtin.copy :
15
15
content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
16
16
dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 3
3
hosts : localhost
4
4
gather_facts : false
5
5
tasks :
6
- - name : Create ephemeral license certificate file from b64 decoded env var
6
+ - name : Create ephemeral license certificate file from b64 decoded env var # noqa template-instead-of-copy
7
7
ansible.builtin.copy :
8
8
content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
9
9
dest : ../../files/license/nginx-repo.crt
10
10
force : false
11
11
mode : 0444
12
12
13
- - name : Create ephemeral license key file from b64 decoded env var
13
+ - name : Create ephemeral license key file from b64 decoded env var # noqa template-instead-of-copy
14
14
ansible.builtin.copy :
15
15
content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
16
16
dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 3
3
hosts : localhost
4
4
gather_facts : false
5
5
tasks :
6
- - name : Create ephemeral license certificate file from b64 decoded env var
6
+ - name : Create ephemeral license certificate file from b64 decoded env var # noqa template-instead-of-copy
7
7
ansible.builtin.copy :
8
8
content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
9
9
dest : ../../files/license/nginx-repo.crt
10
10
force : false
11
11
mode : 0444
12
12
13
- - name : Create ephemeral license key file from b64 decoded env var
13
+ - name : Create ephemeral license key file from b64 decoded env var # noqa template-instead-of-copy
14
14
ansible.builtin.copy :
15
15
content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
16
16
dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : (Alpine Linux) Set up signing key
3
+ when : ansible_facts['os_family'] == "Alpine"
3
4
block :
4
5
- name : (Alpine Linux) Set up NGINX signing key URL
5
6
ansible.builtin.set_fact :
10
11
url : " {{ keysite }}"
11
12
dest : /etc/apk/keys/nginx_signing.rsa.pub
12
13
mode : 0400
13
- when : ansible_facts['os_family'] == "Alpine"
14
14
15
15
- name : (Debian/Red Hat/SLES OSs) Set up NGINX signing key URL
16
16
ansible.builtin.set_fact :
Original file line number Diff line number Diff line change 31
31
tags : nginx_key
32
32
33
33
- name : " {{ nginx_setup | capitalize }} NGINX"
34
+ when : nginx_enable | bool
35
+ tags : nginx_enable
34
36
block :
35
37
- name : " {{ nginx_setup | capitalize }} NGINX Open Source"
36
38
ansible.builtin.include_tasks : " {{ role_path }}/tasks/opensource/install-oss.yml"
69
71
- ansible_facts['service_mgr'] == "systemd"
70
72
- nginx_service_modify | bool
71
73
tags : nginx_modify_systemd
72
- when : nginx_enable | bool
73
- tags : nginx_enable
74
74
75
75
- name : Trigger handlers if necessary
76
76
ansible.builtin.meta : flush_handlers
Original file line number Diff line number Diff line change 8
8
- nginx_install_epel_release | bool
9
9
10
10
- name : (RHEL) Install GeoIP2 and/or OpenTracing EPEL dependencies
11
+ when :
12
+ - ansible_facts['distribution'] == "RedHat"
13
+ - (ansible_facts['distribution_major_version'] == 7 and '"geoip2" in nginx_modules')
14
+ or '"opentracing" in nginx_modules'
15
+ - nginx_install_epel_release | bool
11
16
block :
12
17
- name : (RHEL) Import EPEL GPG key
13
18
ansible.builtin.rpm_key :
17
22
- name : (RHEL) Install package dependencies
18
23
ansible.builtin.yum :
19
24
name : https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_facts['distribution_major_version'] }}.noarch.rpm
20
- when :
21
- - ansible_facts['distribution'] == "RedHat"
22
- - (ansible_facts['distribution_major_version'] == 7 and '"geoip2" in nginx_modules')
23
- or '"opentracing" in nginx_modules'
24
- - nginx_install_epel_release | bool
25
25
26
26
- name : Setup NGINX modules
27
27
ansible.builtin.package :
You can’t perform that action at this time.
0 commit comments