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 11---
22skip_list:
3+ - name[template]
34 - yaml[line-length]
Original file line number Diff line number Diff line change 11ansible-core==2.13.4
22jinja2==3.1.2
3- ansible-lint==6.5.2
3+ ansible-lint==6.7.0
44yamllint==1.28.0
55molecule[docker]==4.0.1
66docker==6.0.0
Original file line number Diff line number Diff line change 2929* Add SLES 15 to all Molecule tests.
3030* Create downgrade and upgrade tests for NGINX Plus.
3131* 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 .
3333
3434## 0.23.1 (April 6, 2022)
3535
Original file line number Diff line number Diff line change 33 hosts : localhost
44 gather_facts : false
55 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
77 ansible.builtin.copy :
88 content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
99 dest : ../../files/license/nginx-repo.crt
1010 force : false
1111 mode : 0444
1212
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
1414 ansible.builtin.copy :
1515 content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
1616 dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 33 hosts : localhost
44 gather_facts : false
55 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
77 ansible.builtin.copy :
88 content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
99 dest : ../../files/license/nginx-repo.crt
1010 force : false
1111 mode : 0444
1212
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
1414 ansible.builtin.copy :
1515 content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
1616 dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 33 hosts : localhost
44 gather_facts : false
55 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
77 ansible.builtin.copy :
88 content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
99 dest : ../../files/license/nginx-repo.crt
1010 force : false
1111 mode : 0444
1212
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
1414 ansible.builtin.copy :
1515 content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
1616 dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 33 hosts : localhost
44 gather_facts : false
55 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
77 ansible.builtin.copy :
88 content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
99 dest : ../../files/license/nginx-repo.crt
1010 force : false
1111 mode : 0444
1212
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
1414 ansible.builtin.copy :
1515 content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
1616 dest : ../../files/license/nginx-repo.key
Original file line number Diff line number Diff line change 11---
22- name : (Alpine Linux) Set up signing key
3+ when : ansible_facts['os_family'] == "Alpine"
34 block :
45 - name : (Alpine Linux) Set up NGINX signing key URL
56 ansible.builtin.set_fact :
1011 url : " {{ keysite }}"
1112 dest : /etc/apk/keys/nginx_signing.rsa.pub
1213 mode : 0400
13- when : ansible_facts['os_family'] == "Alpine"
1414
1515- name : (Debian/Red Hat/SLES OSs) Set up NGINX signing key URL
1616 ansible.builtin.set_fact :
Original file line number Diff line number Diff line change 3131 tags : nginx_key
3232
3333- name : " {{ nginx_setup | capitalize }} NGINX"
34+ when : nginx_enable | bool
35+ tags : nginx_enable
3436 block :
3537 - name : " {{ nginx_setup | capitalize }} NGINX Open Source"
3638 ansible.builtin.include_tasks : " {{ role_path }}/tasks/opensource/install-oss.yml"
6971 - ansible_facts['service_mgr'] == "systemd"
7072 - nginx_service_modify | bool
7173 tags : nginx_modify_systemd
72- when : nginx_enable | bool
73- tags : nginx_enable
7474
7575- name : Trigger handlers if necessary
7676 ansible.builtin.meta : flush_handlers
Original file line number Diff line number Diff line change 88 - nginx_install_epel_release | bool
99
1010- 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
1116 block :
1217 - name : (RHEL) Import EPEL GPG key
1318 ansible.builtin.rpm_key :
1722 - name : (RHEL) Install package dependencies
1823 ansible.builtin.yum :
1924 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
2525
2626- name : Setup NGINX modules
2727 ansible.builtin.package :
You can’t perform that action at this time.
0 commit comments