Merge "Fix auditd restart handler" into stable/newton

This commit is contained in:
Jenkins 2017-03-09 15:45:47 +00:00 committed by Gerrit Code Review
commit 75cae840ab
2 changed files with 7 additions and 3 deletions

View File

@ -14,10 +14,13 @@
# limitations under the License.
# Restarting services ########################################################
#
# NOTE(mhayden): It's not possible to use systemd to restart auditd on CentOS
# since it's a special service. Using the old service scripts is required.
- name: restart auditd
service:
name: auditd
state: restarted
command: service auditd restart
args:
warn: no
- name: restart chrony
service:

View File

@ -19,6 +19,7 @@
- name: Ensure apt cache is updated before testing
apt:
update_cache: yes
cache_valid_time: "{{ cache_timeout }}"
when: ansible_pkg_mgr == 'apt'
changed_when: False
- name: Ensure OpenStack CI image has a logrotate cron job