Fix linting issues
Should fix the issues: - ANSIBLE0012 Commands should not change things if nothing needs doing - ANSIBLE0011 All tasks should be named Change-Id: Ia6ecb913065eb09564ca3bf6be07bb03746dd838
This commit is contained in:
parent
c6edf56dd2
commit
c5c33793d0
|
@ -22,6 +22,7 @@
|
|||
post_tasks:
|
||||
- name: check rsyslog is running
|
||||
shell: ps auxf | grep -v grep | grep rsyslog
|
||||
changed_when: false
|
||||
- name: Open rsyslog.conf
|
||||
slurp:
|
||||
src: "/etc/rsyslog.conf"
|
||||
|
@ -47,11 +48,13 @@
|
|||
stat:
|
||||
path: /etc/rsyslog.conf
|
||||
register: stat_rsyslog_conf
|
||||
- assert:
|
||||
- name: Ensure configuration changed have been applied (rsyslog conf test)
|
||||
assert:
|
||||
that:
|
||||
- "stat_rsyslog_pid.stat.mtime > stat_rsyslog_conf.stat.mtime"
|
||||
msg: "/etc/rsyslog.conf was updated without restarting rsyslogd. Configuration changes have not been applied."
|
||||
- assert:
|
||||
- name: Ensuring configuration changes have been applied (default conf test)
|
||||
assert:
|
||||
that:
|
||||
- "stat_rsyslog_pid.stat.mtime > stat_50_default_conf.stat.mtime"
|
||||
msg: "/etc/rsyslog.d/50-default.conf was updated without restarting rsyslogd. Configuration changes have not been applied."
|
||||
|
|
Loading…
Reference in New Issue