Add sanity checks for xinetd service restart.
xinetd.service is not installed on pre-provisioned nodes, so we'll add extra check for its restart. Change-Id: I4fbac81ceb4aba534395cf8c0a842fb732559234 Closes-Bug: 1775154
This commit is contained in:
parent
e3d6a47a31
commit
302af5066e
@ -529,10 +529,13 @@ outputs:
|
||||
- openstack-swift-account
|
||||
- name: Remove rsync service from xinetd
|
||||
file: state=absent path=/etc/xinetd.d/rsync
|
||||
register: rsync_service_removed
|
||||
when: step|int == 2
|
||||
- name: Restart xinetd service after rsync removal
|
||||
when: step|int == 2
|
||||
service: name=xinetd state=restarted
|
||||
when:
|
||||
- step|int == 2
|
||||
- rsync_service_removed|changed
|
||||
update_tasks:
|
||||
- name: Ensure rsyncd pid file is absent
|
||||
file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user