Fix linting errors

Change-Id: I22224b8a0aa3aefa7058c4420d919febc1d1b49e
This commit is contained in:
Major Hayden 2018-02-05 08:56:03 -06:00
parent 61a3ab251f
commit b0786f3d1e
No known key found for this signature in database
GPG Key ID: 737051E0C1011FB1
1 changed files with 7 additions and 2 deletions

View File

@ -20,8 +20,11 @@
roles:
- role: "rsyslog_server"
post_tasks:
# NOTE(mhayden): Skipping lint checks to avoid ANSIBLE0012.
- name: check rsyslog is running
shell: ps auxf | grep -v grep | grep rsyslog
tags:
- skip_ansible_lint
- name: Open rsyslog.conf
slurp:
src: "/etc/rsyslog.conf"
@ -47,11 +50,13 @@
stat:
path: /etc/rsyslog.conf
register: stat_rsyslog_conf
- assert:
- name: Check that rsyslog was restarted
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: Check that rsyslog was restarted
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."