Merge "Disable iscsi.service to avoid iscsid on host from getting started" into stable/stein

This commit is contained in:
Zuul 2019-06-20 16:45:07 +00:00 committed by Gerrit Code Review
commit 8e33c2ae36

View File

@ -111,6 +111,13 @@ outputs:
- name: Stop and disable iscsid.socket service
service: name=iscsid.socket state=stopped enabled=no
when: stat_iscsid_socket.stat.exists
- name: Check if iscsi.service is enabled
command: systemctl is-enabled --quiet iscsi.service
ignore_errors: True
register: iscsi_service_enabled_result
- name: Stop iscsi.service
service: name=iscsi.service state=stopped enabled=no
when: iscsi_service_enabled_result.rc == 0
upgrade_tasks: []
post_upgrade_tasks:
- when: step|int == 1