File tree Expand file tree Collapse file tree 5 files changed +25
-6
lines changed
.github/workflows/requirements Expand file tree Collapse file tree 5 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
skip_list:
3
- - args[module]
4
3
- name[template]
5
4
- yaml[line-length]
Original file line number Diff line number Diff line change 1
1
ansible-core==2.14.4
2
2
jinja2==3.1.2
3
- ansible-lint==6.14.2
3
+ ansible-lint==6.14.4
4
4
yamllint==1.30.0
5
5
molecule[docker]==4.0.4
6
6
docker==6.0.1
Original file line number Diff line number Diff line change 5
5
ENHANCEMENTS:
6
6
7
7
- Refactor the OSS BSD installation process to consolidate tasks and avoid Ansible Lint warnings.
8
+ - Refactor handlers to avoid Ansible Lint warnings.
8
9
- Enable SELinux configuration tasks on Oracle Linux OS.
9
10
10
11
## 0.24.0 (January 29, 2023)
Original file line number Diff line number Diff line change 15
15
listen : (Handler) Run NGINX
16
16
17
17
- name : (Handler) Check NGINX
18
- ansible.builtin.command : nginx -t
18
+ ansible.builtin.command :
19
+ cmd : nginx -t
19
20
args :
20
21
chdir : " {{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
21
22
register : config_check
41
42
name : amplify-agent
42
43
state : started
43
44
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
Original file line number Diff line number Diff line change 63
63
when : ansible_facts['system'] == 'NetBSD'
64
64
block :
65
65
- 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 }}"
67
69
when : nginx_bsd_install_packages | bool
68
70
notify : (Handler) Run NGINX
69
71
You can’t perform that action at this time.
0 commit comments