File tree Expand file tree Collapse file tree 15 files changed +60
-69
lines changed Expand file tree Collapse file tree 15 files changed +60
-69
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ skip_list:
3
+ - yaml[line-length]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ BUG FIXES:
13
13
14
14
Improve the NGINX main config defaults to bring them closer to the standard NGINX defaults on a fresh NGINX install.
15
15
16
+ TESTS:
17
+
18
+ * Remove Yamllint (Ansible Lint now incorporates Yamllint).
19
+ * Skip Ansible Lint line length rule.
20
+
16
21
## 0.5.1 (April 6, 2022)
17
22
18
23
FEATURES:
Original file line number Diff line number Diff line change 5
5
# Upload NGINX config files/snippets.
6
6
nginx_config_upload_enable : false
7
7
nginx_config_upload :
8
- - src : config/snippets/ # You can optionally also include the specific file name
9
- dest : /etc/nginx/snippets # You can optionally also include the specific desired file name
8
+ - src : config/snippets/ # You can optionally also include the specific file name
9
+ dest : /etc/nginx/snippets # You can optionally also include the specific desired file name
10
10
backup : true
11
11
# Upload HTML files.
12
12
nginx_config_upload_html_enable : false
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ galaxy_info:
7
7
8
8
license : Apache License, Version 2.0
9
9
10
- min_ansible_version : ' 2.11'
10
+ min_ansible_version : " 2.11"
11
11
12
12
platforms :
13
13
- name : Alpine
@@ -22,12 +22,12 @@ galaxy_info:
22
22
- bullseye
23
23
- name : EL
24
24
versions :
25
- - ' 7 '
26
- - ' 8 '
27
- - ' 9 '
25
+ - " 7 "
26
+ - " 8 "
27
+ - " 9 "
28
28
- name : FreeBSD
29
29
versions :
30
- - ' 12.1'
30
+ - " 12.1"
31
31
- name : Ubuntu
32
32
versions :
33
33
- bionic
@@ -36,8 +36,8 @@ galaxy_info:
36
36
- jammy
37
37
- name : SLES
38
38
versions :
39
- - ' 12 '
40
- - ' 15 '
39
+ - " 12 "
40
+ - " 15 "
41
41
42
42
galaxy_tags :
43
43
- nginx
Original file line number Diff line number Diff line change @@ -7,37 +7,36 @@ driver:
7
7
name : docker
8
8
lint : |
9
9
set -e
10
- yamllint .
11
10
ansible-lint --force-color
12
11
platforms :
13
12
- name : alpine-3.13
14
13
image : alpine:3.13
15
14
dockerfile : ../common/Dockerfile.j2
16
15
privileged : true
17
16
volumes :
18
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
19
- command : " /sbin/init"
17
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
18
+ command : /sbin/init
20
19
- name : centos-7
21
20
image : centos:7
22
21
dockerfile : ../common/Dockerfile.j2
23
22
privileged : true
24
23
volumes :
25
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
26
- command : " /usr/sbin/init"
24
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
25
+ command : /usr/sbin/init
27
26
- name : debian-buster
28
27
image : debian:buster-slim
29
28
dockerfile : ../common/Dockerfile.j2
30
29
privileged : true
31
30
volumes :
32
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
33
- command : " /sbin/init"
31
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
32
+ command : /sbin/init
34
33
- name : ubuntu-bionic
35
34
image : ubuntu:bionic
36
35
dockerfile : ../common/Dockerfile.j2
37
36
privileged : true
38
37
volumes :
39
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
40
- command : " /sbin/init"
38
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
39
+ command : /sbin/init
41
40
provisioner :
42
41
name : ansible
43
42
playbooks :
Original file line number Diff line number Diff line change 146
146
directio : false
147
147
directio_alignment : 512
148
148
disable_symlinks :
149
- check : ' on '
149
+ check : " on "
150
150
from : $document_root
151
151
error_page :
152
152
- code :
453
453
always : false
454
454
expires :
455
455
modified : true
456
- time : " 12h"
456
+ time : 12h
457
457
limit_req :
458
458
limit_reqs :
459
459
- zone : one
503
503
- string : $http_user_agent
504
504
variable : $isblockaccess_ua
505
505
content :
506
- - value : " default"
506
+ - value : default
507
507
new_value : 0
508
508
- value : ' "~jndi:ldap"'
509
509
new_value : 1
593
593
alias : /
594
594
limit_except :
595
595
method : GET
596
- directive : " allow all"
596
+ directive : allow all
597
597
mirror :
598
598
uri : /mirror
599
599
proxy :
626
626
- string : server_url
627
627
replacement : $request_uri
628
628
- string : remote_addr
629
- replacement : ' $remote_addr:$remote_port'
629
+ replacement : $remote_addr:$remote_port
630
630
- string : server_date
631
631
replacement : $time_local
632
632
- string : client_browser
674
674
- string : server_url
675
675
replacement : $request_uri
676
676
- string : remote_addr
677
- replacement : ' $remote_addr:$remote_port'
677
+ replacement : $remote_addr:$remote_port
678
678
- string : server_date
679
679
replacement : $time_local
680
680
- string : client_browser
Original file line number Diff line number Diff line change @@ -7,37 +7,36 @@ driver:
7
7
name : docker
8
8
lint : |
9
9
set -e
10
- yamllint .
11
10
ansible-lint --force-color
12
11
platforms :
13
12
- name : alpine-3.13
14
13
image : alpine:3.13
15
14
dockerfile : ../common/Dockerfile.j2
16
15
privileged : true
17
16
volumes :
18
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
19
- command : " /sbin/init"
17
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
18
+ command : /sbin/init
20
19
- name : centos-7
21
20
image : centos:7
22
21
dockerfile : ../common/Dockerfile.j2
23
22
privileged : true
24
23
volumes :
25
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
26
- command : " /usr/sbin/init"
24
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
25
+ command : /usr/sbin/init
27
26
- name : debian-buster
28
27
image : debian:buster-slim
29
28
dockerfile : ../common/Dockerfile.j2
30
29
privileged : true
31
30
volumes :
32
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
33
- command : " /sbin/init"
31
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
32
+ command : /sbin/init
34
33
- name : ubuntu-bionic
35
34
image : ubuntu:bionic
36
35
dockerfile : ../common/Dockerfile.j2
37
36
privileged : true
38
37
volumes :
39
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
40
- command : " /sbin/init"
38
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
39
+ command : /sbin/init
41
40
provisioner :
42
41
name : ansible
43
42
playbooks :
Original file line number Diff line number Diff line change 91
91
- name : Ensure default.conf contains 'client_max_body_size 1m;'
92
92
ansible.builtin.lineinfile :
93
93
path : /etc/nginx/conf.d/default.conf
94
- line : " client_max_body_size 1m;"
94
+ line : client_max_body_size 1m;
95
95
state : present
96
96
check_mode : true
97
97
register : conf
Original file line number Diff line number Diff line change 256
256
always : true
257
257
expires :
258
258
modified : true
259
- time : " 12h"
259
+ time : 12h
260
260
limit_req :
261
261
limit_reqs :
262
262
- zone : one
299
299
- string : $http_user_agent
300
300
variable : $isblockaccess_ua
301
301
content :
302
- - value : " default"
302
+ - value : default
303
303
new_value : 0
304
304
- value : ' "~jndi:ldap"'
305
305
new_value : 1
561
561
- string : server_url
562
562
replacement : $request_uri
563
563
- string : remote_addr
564
- replacement : ' $remote_addr:$remote_port'
564
+ replacement : $remote_addr:$remote_port
565
565
- string : server_date
566
566
replacement : $time_local
567
567
- string : client_browser
601
601
- string : server_url
602
602
replacement : $request_uri
603
603
- string : remote_addr
604
- replacement : ' $remote_addr:$remote_port'
604
+ replacement : $remote_addr:$remote_port
605
605
- string : server_date
606
606
replacement : $time_local
607
607
- string : client_browser
You can’t perform that action at this time.
0 commit comments