Skip to content

Commit 2ca5ce8

Browse files
authored
Remove extra quotes (#326)
1 parent 1291eca commit 2ca5ce8

38 files changed

+311
-311
lines changed

.travis.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,58 +6,58 @@ branches:
66
- main
77
jobs:
88
include:
9-
- name: "(Debian/Ubuntu) Install Specific Version"
9+
- name: (Debian/Ubuntu) Install specific version
1010
env:
1111
scenario: default
12-
- name: "(Alpine Linux) Install Specific Version"
12+
- name: (Alpine Linux) Install specific version
1313
env:
1414
scenario: default_alpine
15-
- name: "(CentOS) Install Specific Version"
15+
- name: (CentOS) Install specific version
1616
env:
1717
scenario: default_centos
18-
- name: "(Debian/Ubuntu) Install Modules"
18+
- name: (Debian/Ubuntu) Cleanup config and try to install modules
1919
env:
2020
scenario: module
21-
- name: "(Alpine Linux) Install Modules"
21+
- name: (Alpine Linux) Cleanup config and try to install modules
2222
env:
2323
scenario: module_alpine
24-
- name: "(CentOS) Install Modules"
24+
- name: (CentOS) Cleanup config and try to install modules
2525
env:
2626
scenario: module_centos
27-
- name: "(Debian/Ubuntu) Install Stable Branch and Push Configuration"
27+
- name: (Debian/Ubuntu) Install stable branch and push a config
2828
env:
2929
scenario: stable_push
30-
- name: "(Alpine Linux) Install Stable Branch and Push Configuration"
30+
- name: (Alpine Linux) Install stable branch and push a config
3131
env:
3232
scenario: stable_push_alpine
33-
- name: "(CentOS) Install Stable Branch and Push Configuration"
33+
- name: (CentOS) Install stable branch and push a config
3434
env:
3535
scenario: stable_push_centos
36-
- name: "(Debian/Ubuntu) Use Template Setting"
36+
- name: (Debian/Ubuntu) Test config templates
3737
env:
3838
scenario: template
39-
- name: "(Alpine Linux) Use Template Setting"
39+
- name: (Alpine Linux) Test config templates
4040
env:
4141
scenario: template_alpine
42-
- name: "(CentOS) Use Template Setting"
42+
- name: (CentOS) Test config templates
4343
env:
4444
scenario: template_centos
45-
- name: "(Debian/Ubuntu) Install NGINX Unit"
45+
- name: (Debian/Ubuntu) Install NGINX Unit
4646
env:
4747
scenario: unit
48-
- name: "(Alpine Linux) Install NGINX Unit"
48+
- name: (Alpine Linux) Install NGINX Unit
4949
env:
5050
scenario: unit_alpine
51-
- name: "(CentOS) Install NGINX Unit"
51+
- name: (CentOS) Install NGINX Unit
5252
env:
5353
scenario: unit_centos
54-
- name: "(Debian/Ubuntu) Install from Source"
54+
- name: (Debian/Ubuntu) Build from source
5555
env:
5656
scenario: source
57-
- name: "(Alpine Linux) Install from Source"
57+
- name: (Alpine Linux) Build from source
5858
env:
5959
scenario: source_alpine
60-
- name: "(CentOS) Install from Source"
60+
- name: (CentOS) Build from source
6161
env:
6262
scenario: source_centos
6363
before_install:

handlers/main.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
2-
- name: "(Handler) Check NGINX"
3-
command: "nginx -t"
2+
- name: (Handler) Check NGINX
3+
command: nginx -t
44
register: config
55
ignore_errors: yes
6-
listen: "(Handler) Run NGINX"
6+
listen: (Handler) Run NGINX
77

8-
- name: "(Handler) Print NGINX error if syntax check fails"
8+
- name: (Handler) Print NGINX error if syntax check fails
99
debug:
1010
var: config.stderr_lines
1111
failed_when: config.rc != 0
1212
when: config.rc != 0
13-
listen: "(Handler) Run NGINX"
13+
listen: (Handler) Run NGINX
1414

15-
- name: "(Handler) Systemd daemon-reload"
15+
- name: (Handler) Systemd daemon-reload
1616
systemd:
1717
daemon_reload: yes
1818

19-
- name: "(Handler) Start/Reload NGINX"
19+
- name: (Handler) Start/Reload NGINX
2020
service:
2121
name: nginx
2222
state: reloaded
@@ -26,22 +26,22 @@
2626
- not ansible_check_mode | bool
2727
listen: "(Handler) Run NGINX"
2828

29-
- name: "(Handler) Start NGINX Amplify agent"
29+
- name: (Handler) Start NGINX Amplify agent
3030
service:
3131
name: amplify-agent
3232
state: started
3333

34-
- name: "(DEPRECATED Handler: Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit"
34+
- name: (DEPRECATED Handler - Debian/Ubuntu/CentOS/RedHat) Start NGINX Unit
3535
service:
3636
name: unit
3737
state: started
3838
enabled: yes
3939

40-
- name: "(DEPRECATED Handler: FreeBSD) Start NGINX Unit"
40+
- name: (DEPRECATED Handler - FreeBSD) Start NGINX Unit
4141
service:
4242
name: unitd
4343
state: started
4444
enabled: yes
4545

46-
- name: "(Handler) Run logrotate"
46+
- name: (Handler) Run logrotate
4747
command: logrotate -f /etc/logrotate.d/nginx

molecule/common/playbooks/default_converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
nginx_logrotate_conf_enable: true
3737
nginx_logrotate_conf:
3838
paths:
39-
- "/var/log/nginx/*.log"
39+
- /var/log/nginx/*.log
4040
options:
4141
- daily
4242
- missingok

tasks/amplify/install-amplify.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
2-
- name: "Configure NGINX Amplify agent repository"
2+
- name: Configure NGINX Amplify agent repository
33
include_tasks: "{{ role_path }}/tasks/amplify/setup-{{ ansible_facts['os_family'] | lower }}.yml"
44
when: ansible_facts['os_family'] in ['Debian', 'RedHat']
55

6-
- name: "Install NGINX Amplify agent"
6+
- name: Install NGINX Amplify agent
77
package:
88
name: nginx-amplify-agent
99
state: present
1010

11-
- name: "Copy NGINX configurator agent configuration template"
11+
- name: Copy NGINX configurator agent configuration template
1212
copy:
1313
remote_src: yes
1414
src: /etc/amplify-agent/agent.conf.default
1515
dest: /etc/amplify-agent/agent.conf
1616
mode: 0644
1717

18-
- name: "Configure NGINX Amplify agent API key"
18+
- name: Configure NGINX Amplify agent API key
1919
lineinfile:
2020
dest: /etc/amplify-agent/agent.conf
2121
regexp: api_key =.*
2222
line: "api_key = {{ nginx_amplify_api_key }}"
23-
notify: "(Handler) Start NGINX Amplify agent"
23+
notify: (Handler) Start NGINX Amplify agent

tasks/amplify/setup-debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: "(Debian/Ubuntu) Add NGINX Amplify agent repository"
2+
- name: (Debian/Ubuntu) Add NGINX Amplify agent repository
33
apt_repository:
44
filename: nginx-amplify
55
repo: "deb [arch=amd64] https://packages.amplify.nginx.com/{{ ansible_facts['distribution'] | lower }}/
@@ -8,7 +8,7 @@
88
mode: 0644
99
when: ansible_facts['distribution_release'] != "focal"
1010

11-
- name: "(Ubuntu 20.04) Add NGINX Amplify agent repository"
11+
- name: (Ubuntu 20.04) Add NGINX Amplify agent repository
1212
apt_repository:
1313
filename: nginx-amplify
1414
repo: deb [arch=amd64] https://packages.amplify.nginx.com/py3/ubuntu focal amplify-agent

tasks/amplify/setup-redhat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
- name: "(Amazon Linux/CentOS/RHEL) Add NGINX Amplify agent repository"
2+
- name: (Amazon Linux/CentOS/RHEL) Add NGINX Amplify agent repository
33
yum_repository:
44
name: nginx-amplify
55
baseurl: http://packages.amplify.nginx.com/{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn/', 'centos/') }}/$releasever/$basearch/

tasks/config/cleanup-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## DEPRECATED -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)
22
---
3-
- name: "Deprecation warning"
3+
- name: Deprecation warning
44
debug:
5-
msg: "DEPRECATED TASKS -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)"
5+
msg: DEPRECATED TASKS -- Use nginxinc.nginx_config role instead (https://github.com/nginxinc/ansible-role-nginx-config)
66

7-
- name: "(DEPRECATED) Find NGINX Configuration Files"
7+
- name: (DEPRECATED) Find NGINX Configuration Files
88
find:
99
paths: "{{ item.directory }}"
1010
patterns: "*.conf"
@@ -13,7 +13,7 @@
1313
when: nginx_cleanup_config_paths is defined
1414
register: nginx_config_files
1515

16-
- name: "(DEPRECATED) Remove NGINX Configuration Files"
16+
- name: (DEPRECATED) Remove NGINX Configuration Files
1717
file:
1818
path: "{{ item }}"
1919
state: absent

tasks/config/debug-output.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
- name: "Register NGINX configuration"
3-
command: "nginx -T"
2+
- name: Register NGINX config
3+
command: nginx -T
44
changed_when: false
55
register: config
66

7-
- name: "Print NGINX config"
7+
- name: Print NGINX config
88
debug:
99
var: config.stdout_lines

tasks/config/modify-systemd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
- name: "Create override directory for NGINX systemd service"
2+
- name: Create override directory for NGINX systemd service
33
file:
44
path: "{{ nginx_service_overridepath }}"
55
state: directory
66
mode: 0755
77

8-
- name: "Create override for NGINX systemd service"
8+
- name: Create override for NGINX systemd service
99
template:
1010
src: "{{ role_path }}/templates/services/nginx.service.override.conf.j2"
1111
dest: "{{ nginx_service_overridepath }}/{{ nginx_service_overridefilename }}"
@@ -15,9 +15,9 @@
1515
when:
1616
- not nginx_service_custom | bool
1717
- not nginx_service_clean | bool
18-
notify: "(Handler) Systemd daemon-reload"
18+
notify: (Handler) Systemd daemon-reload
1919

20-
- name: "Customize override for NGINX systemd service"
20+
- name: Customize override for NGINX systemd service
2121
copy:
2222
src: "{{ nginx_service_custom_file }}"
2323
dest: "{{ nginx_service_overridepath }}/{{ nginx_service_overridefilename }}"
@@ -27,11 +27,11 @@
2727
when:
2828
- nginx_service_custom | bool
2929
- not nginx_service_clean | bool
30-
notify: "(Handler) Systemd daemon-reload"
30+
notify: (Handler) Systemd daemon-reload
3131

32-
- name: "Remove override for NGINX systemd service"
32+
- name: Remove override for NGINX systemd service
3333
file:
3434
path: "{{ nginx_service_overridepath }}"
3535
state: absent
3636
when: nginx_service_clean | bool
37-
notify: "(Handler) Systemd daemon-reload"
37+
notify: (Handler) Systemd daemon-reload

tasks/config/setup-logrotate.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
---
2-
- name: "(Alpine Linux) Install logrotate"
2+
- name: (Alpine Linux) Install logrotate
33
apk:
44
name: logrotate
55
when: ansible_facts['os_family'] == "Alpine"
66

7-
- name: "(Debian/Ubuntu) Install logrotate"
7+
- name: (Debian/Ubuntu) Install logrotate
88
apt:
99
name: logrotate
1010
state: present
1111
when: ansible_facts['os_family'] == "Debian"
1212

13-
- name: "(Amazon Linux/CentOS/Oracle Linux/RHEL) Install logrotate"
13+
- name: (Amazon Linux/CentOS/Oracle Linux/RHEL) Install logrotate
1414
yum:
1515
name: logrotate
1616
state: present
1717
when: ansible_facts['os_family'] == "RedHat"
1818

19-
- name: "(SLES) Set up logrotate"
19+
- name: (SLES) Set up logrotate
2020
block:
21-
- name: "(SLES) Configure logrotate repository"
21+
- name: (SLES) Configure logrotate repository
2222
zypper_repository:
2323
repo: https://download.opensuse.org/repositories/openSUSE:Leap:42.1/standard/openSUSE:Leap:42.1.repo
2424

25-
- name: "(SLES) Install Logrotate"
25+
- name: (SLES) Install Logrotate
2626
zypper:
2727
name: logrotate
2828
state: present
2929
when: ansible_facts['os_family'] == "Suse"
3030

31-
- name: "Create logrotate config"
31+
- name: Create logrotate config
3232
template:
33-
src: "logrotate/nginx.j2"
34-
dest: "/etc/logrotate.d/nginx"
33+
src: logrotate/nginx.j2
34+
dest: /etc/logrotate.d/nginx
3535
mode: 0644
36-
notify: "(Handler) Run logrotate"
36+
notify: (Handler) Run logrotate

0 commit comments

Comments
 (0)