Merge "Fix auditd restart handler" into stable/newton
This commit is contained in:
commit
75cae840ab
|
@ -14,10 +14,13 @@
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# Restarting services ########################################################
|
# 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
|
- name: restart auditd
|
||||||
service:
|
command: service auditd restart
|
||||||
name: auditd
|
args:
|
||||||
state: restarted
|
warn: no
|
||||||
|
|
||||||
- name: restart chrony
|
- name: restart chrony
|
||||||
service:
|
service:
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
- name: Ensure apt cache is updated before testing
|
- name: Ensure apt cache is updated before testing
|
||||||
apt:
|
apt:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
cache_valid_time: "{{ cache_timeout }}"
|
||||||
when: ansible_pkg_mgr == 'apt'
|
when: ansible_pkg_mgr == 'apt'
|
||||||
changed_when: False
|
changed_when: False
|
||||||
- name: Ensure OpenStack CI image has a logrotate cron job
|
- name: Ensure OpenStack CI image has a logrotate cron job
|
||||||
|
|
Loading…
Reference in New Issue