Skip to content

Commit 67a764c

Browse files
Bump ansible-lint from 6.14.2 to 6.14.4 in /.github/workflows/requirements (#601)
1 parent f7fa0ed commit 67a764c

File tree

5 files changed

+25
-6
lines changed

5 files changed

+25
-6
lines changed

.ansible-lint

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
22
skip_list:
3-
- args[module]
43
- name[template]
54
- yaml[line-length]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ansible-core==2.14.4
22
jinja2==3.1.2
3-
ansible-lint==6.14.2
3+
ansible-lint==6.14.4
44
yamllint==1.30.0
55
molecule[docker]==4.0.4
66
docker==6.0.1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
ENHANCEMENTS:
66

77
- Refactor the OSS BSD installation process to consolidate tasks and avoid Ansible Lint warnings.
8+
- Refactor handlers to avoid Ansible Lint warnings.
89
- Enable SELinux configuration tasks on Oracle Linux OS.
910

1011
## 0.24.0 (January 29, 2023)

handlers/main.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
listen: (Handler) Run NGINX
1616

1717
- name: (Handler) Check NGINX
18-
ansible.builtin.command: nginx -t
18+
ansible.builtin.command:
19+
cmd: nginx -t
1920
args:
2021
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
2122
register: config_check
@@ -41,5 +42,21 @@
4142
name: amplify-agent
4243
state: started
4344

44-
- name: (Handler) Run logrotate
45-
ansible.builtin.command: logrotate -f /etc/logrotate.d/nginx
45+
- name: (Handler) Start logrotate
46+
ansible.builtin.command:
47+
cmd: logrotate -f /etc/logrotate.d/nginx
48+
register: logrotate_check
49+
ignore_errors: true
50+
check_mode: false
51+
changed_when: false
52+
listen: (Handler) Run logrotate
53+
54+
- name: (Handler) Print logrotate error if config check fails
55+
ansible.builtin.debug:
56+
var: logrotate_check.stderr_lines
57+
failed_when: logrotate_check['rc'] != 0
58+
when:
59+
- logrotate_check['stderr_lines'] is defined
60+
- logrotate_check['stderr_lines'] != []
61+
- logrotate_check['rc'] != 0
62+
listen: (Handler) Run logrotate

tasks/opensource/install-bsd.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
when: ansible_facts['system'] == 'NetBSD'
6464
block:
6565
- name: (NetBSD) {{ nginx_setup | capitalize }} NGINX package
66-
community.general.pkgin: nginx{{ nginx_version | default('') }}
66+
community.general.pkgin:
67+
name: nginx{{ nginx_version | default('') }}
68+
state: "{{ nginx_state }}"
6769
when: nginx_bsd_install_packages | bool
6870
notify: (Handler) Run NGINX
6971

0 commit comments

Comments
 (0)